fixed the regexes in the main