package re

  1. Overview
  2. Docs

Module Re.EmacsSource

Emacs-style regular expressions

Sourceexception Parse_error
Sourceexception Not_supported

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

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

Parsing of an Emacs-style regular expression

Sourceval re_result : ?case:bool -> string -> ((Re__.Ast.cset, [ `Cased | `Uncased ]) Re__.Ast.gen, [ `Not_supported | `Parse_error ]) result
Sourceval compile : (Re__.Ast.cset, [ `Cased | `Uncased ]) Re__.Ast.gen -> Re__.Compile.re

Regular expression compilation

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

Same as Core.compile

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