What do you think about storing the url here as a regexp since later on in the code we will need to iterate over the collection converting things to regexps anyways and then again when extracting values. Also by doing this, we can optimize the search of the collection by ignoring all things that are not regexps, otherwise right now we would convert things to regexps that we know will never match.

What do u think?