Regular Expressions (abbreviated as REGEX, also known as “Grep”)" are a mini-language pattern-matching used by many computer languages (R, python), and programmes (OpenOffice/LibreOffice, RStudio “find” function).
We’ll use regular expressions through the tidyverse/stringr functions str_subset (returns the matching strings) and str_detect (returns TRUE/FALSE)
str_whichReturns the indexes of matching elementsstr_countReturns how many times the pattern matchesstr_locate,str_locate_allReturns start and end position of matchesstr_extractReturns the matching part of the string