matches_regex {assertive.strings} | R Documentation |
Checks that the input matches the regular expression.
matches_regex(x, rx, ignore.case = TRUE, ...)
x |
Input to check. |
rx |
A regular expression. |
ignore.case |
Should the case of alphabetic characters be ignored? |
... |
Passed to |
A logical vector that is TRUE
when the input matches the
regular expression.
The default for ignore.case
is different to the default in
grepl
.