Learn R Programming

ore (version 1.7.4.1)

ore_escape: 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)

Value

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

Arguments

text

A character vector.

See Also

ore