package re_parser

  1. Overview
  2. Docs
val any : Base.char t

any matches newline, unlike "." in many regex syntaxes.

val one_of : Base.char Base.list -> Base.char t

Duplicates in the lists given to one_of and not_one_of are ignored.

val not_one_of : Base.char Base.list -> Base.char t

The following 6 values match the Re2 character classes with the same name.

val upper : Base.char t

A character matching Char.is_uppercase

val lower : Base.char t

A character matching Char.is_lowercase

val alpha : Base.char t

A character matching Char.is_alpha

val digit : Base.char t

A character matching Char.is_digit

val alnum : Base.char t

A character matching Char.is_alphanum

val space : Base.char t

A character matching Char.is_whitespace

OCaml

Innovation. Community. Security.