grab(pattern, dictionary = getOption("regex.library"))
"@"
that is a regular
expression from a qdapRegex dictionary.convenience function to
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")[1] "^\\s+|\\s+$|\\s+(?=[.](?:\\D|$))|(\\s+)(?=[,]|[;:?!\\]\\}\\)]+)|(?<=[\\(\\[\\{])(\\s+)|(\\s+)(?=[\\s])"## <strong>Not run</strong>: # ## Throws an error # grab("@foo") # ## <strong>End(Not run)</strong> cat(grab("@pages2"))\d+\-*\d*;*\s*\d*## <strong>Not run</strong>: # cat(grab("@pages2"), file="clipboard") # ## <strong>End(Not run)</strong>