Url utilities and support for compiling a url into a regular expression.