1

Here is an example, for context...

df %>% filter(str_detect(col, "(?i)animal"))

And another one:

df1 <- df %>% filter(str_detect(col, "(?i)^([a-z]).*\\1$"))
Ronak Shah
  • 286,338
  • 16
  • 97
  • 143

0 Answers0