Description Usage Arguments Details Value Note Author(s) See Also Examples
Escapes any characters that would have special meaning in a reqular expression.
1 | escapeRegex(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.
The value of the string with any characters that would have special meaning in a reqular expression escaped.
Note that this function was copied literally from the Hmisc
package (to prevent importing the entire package for one line of code).
Charles Dupont
Department of Biostatistics
Vanderbilt University
Maintainer: Gjalt-Jorn Peters <gjalt-jorn@userfriendlyscience.com>
grep
, Hmisc
, http://biostat.mc.vanderbilt.edu/wiki/Main/Hmisc, https://github.com/harrelfe/Hmisc
1 2 | string <- "this\\(system) {is} [full]."
escapeRegex(string)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.