Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

escapeRegex

Escape a regular expression


Description

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).

Usage

escapeRegex(string)

Arguments

string

A regular expression to escape

Value

string, escaped.

Examples

## Not run: 
escapeRegex("Tom&Jerry")
escapeRegex(".Net")

## End(Not run)

crunch

Crunch.io Data Tools

v1.28.0
LGPL (>= 3)
Authors
Greg Freedman Ellis [aut, cre], Jonathan Keane [aut], Mike Malecki [aut], Neal Richardson [aut], Gordon Shotwell [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.