engine: engine

engineR Documentation

engine

Description

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.

Usage

engine()

Author(s)

Toby Dylan Hocking

Examples


namedCapture::engine()
old.opt <- options(namedCapture.engine="PCRE")
namedCapture::engine()
options(old.opt)


tdhock/namedCapture documentation built on Jan. 27, 2024, 9:02 p.m.