Module Core.Group
Manipulate matching groups.
type t= groupsInformation about groups in a match.
val get : t -> int -> stringRaise
Not_foundif the group did not match
val offset : t -> int -> int * intRaise
Not_foundif the group did not match
val start : t -> int -> intReturn the start of the match. Raise
Not_foundif the group did not match.
val stop : t -> int -> intReturn the end of the match. Raise
Not_foundif the group did not match.
val all : t -> string arrayReturn the empty string for each group which did not match
val all_offset : t -> (int * int) arrayReturn
(-1,-1)for each group which did not match
val test : t -> int -> boolTest whether a group matched
val nb_groups : t -> intReturns the total number of groups defined - matched or not. This function is experimental.
val pp : Stdlib.Format.formatter -> t -> unit