The goal of this vignette is to
provide some basic examples that solve common regular expression tasks.
The print and grepl calls are attached at the
end of each chain to show the regular expression that is constructed and
what it matches.
Contains two words
# find something that must contain two wordsrx() %>%rx_find("cat") %>%rx_anything() %>%rx_find("dog") %>%print() %>%grepl(c("cat dog", "cat", "dog"))#> [1] "(cat)(.*)(dog)"#> [1] TRUE FALSE FALSE