engine | R Documentation |
Get current regex engine used by str_match_named
and
str_match_all_named
. RE2 is used by default if the re2 package is
available; otherwise, PCRE is used by default. The user can set
options(namedCapture.engine="PCRE")
to use PCRE even when
RE2 is available.
engine()
Toby Dylan Hocking
namedCapture::engine()
old.opt <- options(namedCapture.engine="PCRE")
namedCapture::engine()
options(old.opt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.