"Replace only if the file name matches another string / has a specific extension / is of a ... How to do a search and replace over multiple files suggests: ... matches)) print(""NEW TEXT:\n{}"".format(new_text)) elif cfg.verbose: print('File {} does not ..."