Skip to contents

Match given pattern in provided strings using grepl for speed, by stringr format for convenience

Usage

d_grepl_case(x, pattern, ...)

Arguments

x

A character vector where pattern matching is done

pattern

The pattern to match

...

Additional arguments to pass to grepl()

Value

A logical vector

Examples

x <- c("ABC", "abC", "Bcd")
d_grepl(x, "bc")
#> [1] TRUE TRUE TRUE

d_grepl_case(x, "bc")
#> [1] FALSE FALSE FALSE