regexMatch: Perform a regular expression match, returning the matched...

Description Usage Arguments Value

View source: R/regexMatch.R

Description

Perform a regular expression match, returning the matched string.

Usage

1
regexMatch(text, pattern, ignore.case = FALSE, perl = FALSE)

Arguments

text

input string, can be a vector of strings

pattern

regular expression pattern

ignore.case

to pass to regexpr

perl

to pass to regexpr

Value

character vector, same length as 'text' vector


rossholmberg/holmberg documentation built on April 23, 2018, 10:07 a.m.