Module Regex.Match
val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
val get : sub:id_t -> t -> string option
If location information has been omitted (e.g., via
~sub
), the error returned isRegex_no_such_subpattern
, just as though that subpattern were never defined.
val get_exn : sub:id_t -> t -> string
val get_all : t without_trailing_none -> string option array
get_all t
returns all available matches as strings in an array. For the indexing convention, see comment above regardingsub
parameter.