Use preg_match directly in UrlMap to make request URI slicing more reliable