escapeRegex | R Documentation |
Escapes any characters that would have special meaning in a reqular expression.
escapeRegex(string)
escapeBS(string)
string |
string being operated on. |
escapeRegex
will escape any characters that would have
special meaning in a reqular expression. For any string
grep(regexpEscape(string), string)
will always be true.
escapeBS
will escape any backslash ‘\’ in a string.
The value of the string with any characters that would have special meaning in a reqular expression escaped.
Charles Dupont
Department of Biostatistics
Vanderbilt University
grep
string <- "this\\(system) {is} [full]."
escapeRegex(string)
escapeBS(string)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.