Moving the regexes out to constants in file converter.