fn builtin_regmatches_assign(
args: &[RValue],
_: &[(String, RValue)],
) -> Result<RValue, RError>Expand description
Replace matched substrings using regexpr/gregexpr match data.
Called as regmatches(x, m) <- value. The replacement function receives
args (x, m, value):
- For regexpr data: value is a character vector of replacements
- For gregexpr data: value is a list of character vectors
@param x character vector that was searched @param m match data from regexpr() or gregexpr() @param value replacement strings @return character vector with matched substrings replaced