Internal function that replaces regex matches with underscores

preprocess_internal(string, sep_in)

Arguments

string

A string.

sep_in

(short for separator input) A regex supplied as a character (if not NULL), which will be wrapped internally into stringr::regex(). All matches will be replaced by underscores (additionally to "_" and " ", for which this is always true). Underscores can later turned into another separator via postprocess.

Value

A character containing the parsed string.