| perl_flavor | R Documentation |
These functions retrieve or set the perl property of an object of class re.
perl_flavor(x) perl_flavor(x) <- value
x |
Object of class |
value |
Logical. |
The assignment function merely sets the perl property so that the x
attribute is read as an expression using the PCRE flavor of regular expression
(when perl = TRUE) or not (when perl = FALSE).
The regular expression itself is not modified: if perl is set to an
inappropriate value, the regular expression will no longer function properly in
any of the functions that support re objects.
A logical vector of length 1.
(regex <- re("^.{3,}"))
perl_flavor(regex)
perl_flavor(regex) <- FALSE
perl_flavor(regex)
regex
perl_flavor(regex) <- TRUE
perl_flavor(regex)
regex
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.