powered by
Get texts in which certain "matches" occur.
extract_match(v, match, invert = FALSE, ignore.case = TRUE)
A list the same length as text variable.
Text vector or annotated data frame.
A regex match for a word(s) or expression. For multiple words, please use "|" to divide them.
Do you want texts without certain matches to be returned? By default FALSE.
Should case be ignored? By default, TRUE.
# \donttest{ extract_match(c("This function was created on the 29 September 2021", "Today is October 12, 2021"), "October") # }
Run the code above in your browser using DataLab