re2r (version 0.2.0)

get_simplify: Simplify pattern strings.

Description

Simplify pattern strings.

Usage

get_simplify(pattern, ...)

Arguments

pattern

a pre-compiled regular expression or a string

...

further arguments passed to re2

Examples

Run this code
# NOT RUN {
get_simplify("a{1}")
get_simplify("a{3}b+(:?abc(a))")
get_simplify("a{2,3}a{2}")
get_simplify(re2("1+2",literal = TRUE))
get_pattern(re2("1+2",literal = TRUE))
# }

Run the code above in your browser using DataLab