ore_escape: Escape regular expression special characters

ore_escapeR Documentation

Escape regular expression special characters

Description

Escape characters that would usually be interpreted specially in a regular expression, returning a modified version of the argument. This can be useful when incorporating a general-purpose string into a larger regex.

Usage

ore_escape(text)

Arguments

text

A character vector.

Value

A modified version of the argument, with special characters escaped by prefixing them with a backslash.

See Also

ore


ore documentation built on Jan. 17, 2023, 1:10 a.m.