ore_escape {ore}R 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


[Package ore version 1.7.4.1 Index]