Correction of regexes