use groups for new file.replace