A small wrapper on 'regexpr' to extract the matches and captured groups from the match of a regular expression to a character vector.
This version of rematch can be found in the following snapshots: