grepl_multi_pattern: Run grepl on a vector of patterns.

View source: R/regex_tools.R

grepl_multi_patternR Documentation

Run grepl on a vector of patterns.

Description

Run grepl on a vector of patterns.

Usage

grepl_multi_pattern(pattern, x, ...)

Arguments

pattern

One or more patterns (see grepl)

x

A string vector

...

Passed to grepl

Value

A boolean vector if any pattern is matched

See Also

gsub_multi_pattern

Examples

grepl_multi_pattern(pattern=c("A", "B", "C"), LETTERS)

billdenney/bsd.report documentation built on Jan. 16, 2024, 12:54 a.m.