Dependency-free drop-in alternative for stringr::str_extract().
str_extract(string, pattern)A character matrix. The first column is the complete match, followed by one column for each capture group.
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.