Learn R Programming

magclass (version 3.74)

.escapeRegex: .escapeRegex

Description

Escapes all symbols in a string which have a special meaning in regular expressions.

Usage

.escapeRegex(x)

Arguments

x
String or vector of strings that should be escaped.

Value

The escaped strings.

See Also

grep