- regex-exec regex bytevector #!optional notbol noteolprocedure
Execute the given regex on the given bytevector. Returns #f if the match failed, or a vector of matching subexpressions. In the vector, each element is either #f (for non-participating optional submatches) or a pair of bytevector offsets. The first element in the pair specifies the beginning of the submatch in the bytevector, the second element specifies the end of the submatch. The first pair in the vector corresponds to the matched substring for the entire regular expression.
The optional notbol and noteol procedure arguments control whether the first/last character of the input should be considered the start/end of the line.