convert an express-style route string into a regular expression