re2r (version 0.2.0)

get_pattern: The string specification for this RE2.

Description

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

Examples

Run this code
# NOT RUN {
regexp = re2("1")
get_pattern(regexp)

get_pattern(re2("^(?P<abc>abc)a"))
# }

Run the code above in your browser using DataCamp Workspace