get_simplify: Simplify pattern strings.

Description Usage Arguments Examples

Description

Simplify pattern strings.

Usage

1

Arguments

pattern

a pre-compiled regular expression or a string

...

further arguments passed to re2

Examples

1
2
3
4
5
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))

re2r documentation built on May 2, 2019, 12:35 p.m.