package re

  1. Overview
  2. Docs
  • deprecated Use Re.Posix
include module type of struct include Re.Posix end
exception Parse_error
exception Not_supported

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

type opt = [
  1. | `ICase
  2. | `NoSub
  3. | `Newline
]
val re : ?opts:opt list -> string -> Re__.Core.t

Parsing of a Posix extended regular expression

val compile : Re__.Core.t -> Re__.Core.re

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

val compile_pat : ?opts:opt list -> string -> Re__.Core.re

compile_pat ?opts regex compiles the Posix extended regular expression regexp

OCaml

Innovation. Community. Security.