ore_escape: Escape regular expression special characters

Description Usage Arguments Value See Also

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

1

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 Oct. 12, 2021, 5:07 p.m.