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