This no longer needs to use a regular expression as a workaround now that file path replacement uses template syntax.