string_extract function

Extracts a pattern from a character vector