Rdocumentation
powered by
Learn R Programming
assertive.strings (version 0.0-3)
matches_regex: Does the input match the regular expression?
Description
Checks that the input matches the regular expression.
Usage
matches_regex(x, rx, ignore.case = TRUE, ...)
Arguments
x
Input to check.
rx
A regular expression.
ignore.case
Should the case of alphabetic characters be ignored?
...
Passed to
grepl
.
Value
A logical vector that is
TRUE
when the input matches the regular expression.
See Also
regex
and
regexpr
.