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.posix/Re_posix/index.html

Module Re_posixSource

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

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

Sourcetype opt = [
  1. | `ICase
  2. | `NoSub
  3. | `Newline
]
Sourceval re : ?opts:opt list -> string -> (Re__.Ast.cset, [ `Cased | `Uncased ]) Re__.Ast.gen

Parsing of a Posix extended regular expression

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

compile r is defined as Core.compile (Core.longest r)

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

compile_pat ?opts regex compiles the Posix extended regular expression regexp

OCaml

Innovation. Community. Security.