stringr (version 0.1.10)

str_match: Extract first matched group from a string...

Description

Extract first matched group from a string

Usage

str_match(string, pattern)

Arguments

string
input character vector
pattern
with groups

Value

  • character matrix. First column is the complete match, followed by one for each capture group