ht <- hux(c("The cat sat", "on the", "mat"))
map_bold(ht, by_regex("at" = TRUE))
map_bold(ht, by_regex("a.*a" = TRUE))
map_bold(ht, by_regex(
"the" = TRUE,
.grepl_args = list(
ignore.case = TRUE
)
))
Run the code above in your browser using DataLab