str_match {stringr}R Documentation

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


[Package stringr version 0.2 Index]