Fixed regular expressions and convert to lower case.