Convert or test for regex objects
as.regex
gives objects the class "regex"
. is.regex
tests for objects of class "regex"
.
as.regex(x) is.regex(x)
x |
An object to test or convert. |
as.regex
returns the inputs object, with class
c("regex", "character")
.
is.regex
returns TRUE
when the input inherits from class
"regex"
and FALSE
otherwise.
x <- as.regex("month.abb") is.regex(x)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.