engine: engine

Description Usage Author(s) Examples

Description

Get current regex engine used by str_match_named and str_match_all_named. RE2 is used by default if the re2r 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.

Usage

1

Author(s)

Toby Dylan Hocking

Examples

1
2
3
4
namedCapture::engine()
old.opt <- options(namedCapture.engine="PCRE")
namedCapture::engine()
options(old.opt)

namedCapture documentation built on April 2, 2020, 1:07 a.m.