Uses regexps directly instead of through a map.