extract_string: extract strings from a vector using regex, analog to stringr::str_extract
Description
extract strings from a vector using regex, analog to stringr::str_extract
Usage
extract_string(string, pattern, ...)
Value
A character vector with matches only, possibly of different length as
string
Arguments
- string
 
Input vector. A character vector.
- pattern
 
Regex pattern to look for
- ...
 
passed on to regexpr()