package mparser-pcre

  1. Overview
  2. Docs
MParser plugin: PCRE-based regular expressions

Install

Dune Dependency

Authors

Maintainers

Sources

1.3.tar.gz
sha256=c17137d11e23435cef85301b7fc1513e3ebf7b52b9c19e7d6770e9b021f3d0d8
md5=3180cb522747aac876cc93e50ccd8d78

doc/mparser-pcre/MParser_PCRE/index.html

Module MParser_PCRESource

PCRE-based regular expression parsers.

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

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 = Pcre.regexp ~iflags:(Pcre.cflags `ANCHORED ) rx

OCaml

Innovation. Community. Security.