Dune_re.Group
SourceManipulate 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.
Similar to get
, but returns an option instead of using an exception.
Return the start of the match. Raise Not_found
if the group did not match.
Return the end of the match. Raise Not_found
if the group did not match.
Returns the total number of groups defined - matched or not. This function is experimental.