
Last chance! 50% off unlimited learning
Sale ends in
convenience function to
grab(pattern, dictionary = getOption("regex.library"))
Returns a single string regular expression from one of the qdapRegex dictionaries.
A character string starting with "@"
that is a regular
expression from a qdapRegex dictionary.
A dictionary of canned regular expressions to search within.
Many R regular expressions contain doubled backslashes that are not
used in other regex interpreters. Using cat
can remove
backslash escapes (see Examples) or URLencode
if using in a url.
grab("@rm_white")
if (FALSE) {
## Throws an error
grab("@foo")
}
cat(grab("@pages2"))
if (FALSE) {
cat(grab("@pages2"), file="clipboard")
}
Run the code above in your browser using DataLab