matches_regex: Does the input match the regular expression?

Description Usage Arguments Value Note See Also

View source: R/internal-string.R

Description

Checks that the input matches the regular expression.

Usage

1
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.


assertive.strings documentation built on May 1, 2019, 8:45 p.m.