Escape a regular expression
This function takes a string and escapes all of the special characters in the
string. For example, the .
in VB.NET
will be escaped with a slash (though
regular R printing will make it look like there are two slashes).
escapeRegex(string)
string |
A regular expression to escape |
string
, escaped.
## Not run: escapeRegex("Tom&Jerry") escapeRegex(".Net") ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.