A wrapper around the base function combo of gregexpr and regmatches

regmatches_(x, pat, drop = FALSE, ...)

regmatches_first(x, pat, drop = FALSE, ...)

Arguments

x

Text data.

pat

Reg ex pattern

drop

Logical indicating whether to drop empty matches. Defaults to FALSE.

...

Other args (like ignore.case) passed to gregexpr

Value

Matching expression from text.