package mparser-re

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module MParser_RESource

RE-based regular expression parsers. The used syntax is re.perl (the one most similar to PCRE).

A pluggable regular expression engine.

include sig ... end
Sourceval match_regexp : 's MParser.state -> Regexp.t -> Regexp.substrings option
Sourceval make_regexp : string -> Regexp.t
Sourceval regexp : Regexp.t -> (string, 's) MParser.t
Sourceval regexp_substrings : Regexp.t -> (string array, 's) MParser.t
Sourcemodule Tokens : sig ... end
Sourceval 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:

let make (rx: string) : Regexp.t = Re.Perl.(compile (re ~opts: `Anchored rx))

OCaml

Innovation. Community. Security.