Researchers and analysts commonly use regexprep to clean text before analysis: normalising identifiers in exported spreadsheets, stripping markup from instrument logs, reformatting file names, or ...