m: Match function using perl compatible regular expressions

Description Usage Arguments Value See Also

Description

Match function using perl compatible regular expressions

Usage

1

Arguments

data

character vector to match against

pattern

regular expression to use for matching

options

regular expression options to use

Value

if no captures, returns a logical vector the same length as the input character vector specifying if the relevant value matched or not. If there are captures in the regular expression, returns a list of named character vectors with the captured text. If the g option is used with capturing, the output is a list of lists.

See Also

regex Section 'Perl-like Regular Expressions' for a discussion of the supported options


jimhester/perlrer documentation built on May 19, 2019, 10:33 a.m.