magclass (version 4.107.0)

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