package re

  1. Overview
  2. Docs
RE is a regular expression library for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

re-1.12.0.tbz
sha256=a01f2bf22f72c2f4ababd8d3e7635e35c1bf6bc5a41ad6d5a007454ddabad1d4
sha512=f0726826e1e677f7ecdf447d46d814a11d3844ec6e5c0527be8c73c7afdb08aacfca47ea764eda325bcd7064aff07c1d3441c935ee5a0fc99ede8707f81a451d

doc/re.perl/Re_perl/index.html

Module Re_perlSource

  • deprecated Use Re.Perl
include module type of struct include Re.Perl end
Sourceexception Parse_error
Sourceexception Not_supported

Errors that can be raised during the parsing of the regular expression

Sourcetype opt = [
  1. | `Ungreedy
  2. | `Dotall
  3. | `Dollar_endonly
  4. | `Multiline
  5. | `Anchored
  6. | `Caseless
]
Sourceval re : ?opts:opt list -> string -> (Re__.Ast.cset, [ `Cased | `Uncased ]) Re__.Ast.gen

Parsing of a Perl-style regular expression

Sourceval compile : (Re__.Ast.cset, [ `Cased | `Uncased ]) Re__.Ast.gen -> Re__.Compile.re

(Same as Re.compile)

Sourceval compile_pat : ?opts:opt list -> string -> Re__.Compile.re

Regular expression compilation

OCaml

Innovation. Community. Security.