Get options of a pre-compiled regular expression

Usage

get_options(pattern, ...)

Arguments

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

Value

an list

Description

Returns options of a pre-compiled regular expression

Examples

get_options(re2("test"))
$utf_8 [1] TRUE $case_sensitive [1] TRUE $posix_syntax [1] FALSE $dot_nl [1] FALSE $literal [1] FALSE $longest_match [1] FALSE $never_nl [1] FALSE $never_capture [1] FALSE $one_line [1] FALSE $perl_classes [1] FALSE $word_boundary [1] FALSE $log_error [1] FALSE $max_mem [1] 8388608