Improve regex for finding existing routes

Some improvements to the check for existing routes:

- More liberal with spaces around parenthesis
- `"` now works in addition to `'`. (This looks like it was an oversight)
- Don't capture the first group
I agree on the change.

Are you suggesting I add this explanation inline, or just for clarification here?