
The regexp_parse function is more efficient than regexp_match and regexp_substr. It applies regular expression to target_str
with offset. This function returns a vector containing 2 elements for each match. The first (even numbered) element of each pair is the start index and the second (odd numbered) is the end index of the match.
