Front end for regex replacements.