powered by
stringr
stringr does this, but here we have a small amount of base R code
str_extract(string, pattern, ...)