Print information about a pre-compiled regular expression

Usage

"print"(x, options = FALSE, ...)

Arguments

x
a pre-compiled regular expression
options
print options
...
further arguments passed to or from other methods.

Description

Print information about a pre-compiled regular expression

Examples

re2("(.*)@([^.]*)")
re2 pre-compiled regular expression pattern: (.*)@([^.]*) number of capturing subpatterns: 2 capturing names with indices: .match .1 .2 expression size: 37
re2("(?P<name>sd)")
re2 pre-compiled regular expression pattern: (?P<name>sd) number of capturing subpatterns: 1 capturing names with indices: .match name expression size: 8
print(re2("sd"), options = TRUE)
re2 pre-compiled regular expression pattern: sd number of capturing subpatterns: 0 capturing names with indices: .match expression size: 6 Options: UTF-8 pattern: TRUE sase sensitive: TRUE posix syntax: FALSE dot match new line: FALSE literal pattern string: FALSE longest match: FALSE never match \n: FALSE never capture: FALSE max memory: 8388608