Dependency-free drop-in alternative for stringr::str_extract_all().
str_extract_all(string, pattern, simplify = FALSE)A list of character vectors if simplify = FALSE,
or a character matrix if simplify = TRUE.
Input vector. Either a character vector, or something coercible to one.
Pattern to look for.
The default interpretation is a regular expression,
as described in base::regex.
Control options with regex().
Match a fixed string (i.e. by comparing only bytes), using fixed().
This is fast, but approximate.
If FALSE, the default, returns a list of character vectors.
If TRUE returns a character matrix.