package re2

  1. Overview
  2. Docs
val any : char t

any, unlike "." by default, matches newline.

(However, note that of_re2 (Re2.create_exn ".") will match newline. See the comment on of_re2 for more information.)

val one_of : char list -> char t

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

val not_one_of : char list -> char t
val upper : char t

A character matching Char.is_uppercase

val lower : char t

A character matching Char.is_lowercase

val alpha : char t

A character matching Char.is_alpha

val digit : char t

A character matching Char.is_digit

val alnum : char t

A character matching Char.is_alphanum

val space : char t

A character matching Char.is_whitespace

OCaml

Innovation. Community. Security.