Modifiy files for replace_regex. Correct indentation issues and move regex in a constant.