smart gregexpr wrapper

gregexpr_(x, pat, ...)

regexpr_(x, pat, ...)

Arguments

x

Input text

pat

Reg ex pattern

...

Other args passed to base (g)regexpr

Value

Pattern match positions