Refactors Regexes