If you just want to drop the first slash, `url = req.url.replace '/', ''` would be clearer since you don’t need to escape the regex. In CoffeeScript you can also do `url = req.url[1..]` which I like the best.