Use compiled regex pattern, clean up files.