Module Rx_intf.T
type t
=
|
Any_char
|
Any_in of Char_class.t list
|
Exactly of string
Exactly s
matches exactly the strings
(e.g., '.' only matches '.')|
Line of Start_or_end.t
|
None_in of Char_class.t list
|
One_or_more of t
|
Or of t list
|
Pattern of string
Pattern s
interpretss
as a regexp (e.g., '.' matches any character)|
Point
Matches zero characters, but only where the point is.
|
Repeat of
{
min : int;
max : int option;
t : t;
}
|
Seq of t list
|
Submatch of t
Text matched by
Submatch
can be retrieved usingRegexp.Last_match.text_exn ~subexp:index
.index
is the number of parentheses to the left of this submatch in the regexp pattern.|
Submatch_n of
{
index : int;
t : t;
}
Text matched by
Submatch_n
can be retrieved usingRegexp.Last_match.text_exn ~subexp:index
.index
must be at least the number of parentheses left of this submatch in the regexp pattern. Ifindex
is greater, it will shadow the submatch that would have been assigned that index. Ifindex
is less, then it is an error to use the resulting regexp.|
Zero_or_more of t
|
Zero_or_one of t
val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t