Learn R Programming

snakecase (version 0.11.1)

preprocess_internal: Internal function that replaces regex matches with underscores

Description

Internal function that replaces regex matches with underscores

Usage

preprocess_internal(string, sep_in)

Value

A character containing the parsed string.

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.

Author

Malte Grosser, malte.grosser@gmail.com