Up

module Re

: sig
#
type t
#
type re
#
type substrings
#
val compile : t -> re
#
val exec : ?pos:int -> ?len:int -> re -> string -> substrings
#
val execp : ?pos:int -> ?len:int -> re -> string -> bool
#
val exec_partial : ?pos:int -> ?len:int -> re -> string -> [
| `Full
| `Partial
| `Mismatch
]
#
val get : substrings -> int -> string
#
val get_ofs : substrings -> int -> int * int
#
val get_all : substrings -> string array
#
val get_all_ofs : substrings -> (int * int) array
#
val test : substrings -> int -> bool
#
val str : string -> t
#
val char : char -> t
#
val alt : t list -> t
#
val seq : t list -> t
#
val empty : t
#
val epsilon : t
#
val rep : t -> t
#
val rep1 : t -> t
#
val repn : t -> int -> int option -> t
#
val opt : t -> t
#
val bol : t
#
val eol : t
#
val bow : t
#
val eow : t
#
val bos : t
#
val eos : t
#
val leol : t
#
val start : t
#
val stop : t
#
val word : t -> t
#
val not_boundary : t
#
val whole_string : t -> t
#
val longest : t -> t
#
val shortest : t -> t
#
val first : t -> t
#
val greedy : t -> t
#
val non_greedy : t -> t
#
val group : t -> t
#
val no_group : t -> t
#
val nest : t -> t
#
val set : string -> t
#
val rg : char -> char -> t
#
val inter : t list -> t
#
val diff : t -> t -> t
#
val compl : t list -> t
#
val any : t
#
val notnl : t
#
val alnum : t
#
val alpha : t
#
val ascii : t
#
val blank : t
#
val cntrl : t
#
val digit : t
#
val graph : t
#
val lower : t
#
val print : t
#
val punct : t
#
val space : t
#
val upper : t
#
val xdigit : t
#
val case : t -> t
#
val no_case : t -> t
#
val print_re : Format.formatter -> re -> unit
end