Learn R Programming

namedCapture (version 2020.4.1)

engine: engine

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

engine()

Arguments

Examples

Run this code
# NOT RUN {
namedCapture::engine()
old.opt <- options(namedCapture.engine="PCRE")
namedCapture::engine()
options(old.opt)

# }

Run the code above in your browser using DataLab