package re

  1. Overview
  2. Docs

Emacs-style regular expressions

exception Parse_error
exception Not_supported

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

val re : ?case:bool -> string -> (Re__.Ast.cset, [ `Cased | `Uncased ]) Re__.Ast.gen

Parsing of an Emacs-style regular expression

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

Regular expression compilation

val compile_pat : ?case:bool -> string -> Re__.Compile.re

Same as Core.compile

OCaml

Innovation. Community. Security.