Converted regexes to objects.