Match: Perform a global regular expression match

Description Usage Arguments Value Examples

Description

Returns the match, a capture group, or an empty string if the match fails

Usage

1
Match(pattern, str, i = NULL, perl = TRUE)

Arguments

pattern

a character string containing a regular expression.

str

a character vector where matches are sought.

i

(optional) number or name of capture group.

perl

if TRUE perl-compatible regexps are used

Value

a list containing the matches the matches of the specifies capture group(s)

Examples

1
##

gschofl/gsmisc documentation built on May 17, 2019, 8:52 a.m.