mparser-re
MParser_RE
RE-based regular expression parsers. The used syntax is re.perl (the one most similar to PCRE).
module Regexp : MParser_Sig.Regexp
A pluggable regular expression engine.
include sig ... end
val match_regexp : 's MParser.state -> Regexp.t -> Regexp.substrings option
val make_regexp : string -> Regexp.t
val regexp : Regexp.t -> (string, 's) MParser.t
val regexp_substrings : Regexp.t -> (string array, 's) MParser.t
module Tokens : sig ... end
val wrap : Re.re -> Regexp.t
Wrap a compiled regular expression into an abstract regexp.
Use this to circumvent limitations of Regexp.make, which is defined as:
Regexp.make
let make (rx: string) : Regexp.t = Re.Perl.(compile (re ~opts: `Anchored rx))
`Anchored