The string specification for this RE2.

Usage

get_pattern(pattern, ...)

Arguments

pattern
a pre-compiled regular expression or a string
...
further arguments passed to re2

Value

a string

Description

The string specification for this RE2.

Examples

regexp = re2("1") get_pattern(regexp)
[1] "1"
get_pattern(re2("^(?P<abc>abc)a"))
[1] "^(?P<abc>abc)a"