matches_regex

0th

Percentile

Does the input match the regular expression?

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.

Note

The default for ignore.case is different to the default in grepl.

See Also

regex and regexpr.

Aliases
  • matches_regex
Documentation reproduced from package assertive.strings, version 0.0-3, License: GPL (>= 3)

Community examples

Looks like there are no examples yet.