Module Re.GroupSource
Manipulate matching groups.
Manipulate matching groups.
Information about groups in a match. As is conventional, every match implicitly has a group 0 that covers the whole match, and explicit groups are numbered from 1.
Raise Not_found if the group did not match
Similar to get, but returns an option instead of using an exception.
Raise Not_found if the group did not match
Similar to offset, but returns an option instead of using an exception.
Return the start of the match. Raise Not_found if the group did not match.
Similar to start_opt, but returns an option instead of using an exception.
Return the end of the match. Raise Not_found if the group did not match.
Similar to stop_opt, but returns an option instead of using an exception.
Return the empty string for each group which did not match
Return (-1,-1) for each group which did not match
Test whether a group matched
Returns the total number of groups defined - matched or not. This function is experimental.