remove loop for regex search

For some reason there is a search for the longest non-regex, but regex routes are defined with a `@`, and sub-regexes do not work for routes.

@dannyvankooten is there a particular reason this is in there? Because as you may notice, the tests still pass. But of course it could be that I've missed some use case when I'd setup the tests.