package re_parser

  1. Overview
  2. Docs

Module Re_parser.CharSource

Sourceval any : Base.char t

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

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

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

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

Sourceval upper : Base.char t

A character matching Char.is_uppercase

Sourceval lower : Base.char t

A character matching Char.is_lowercase

Sourceval alpha : Base.char t

A character matching Char.is_alpha

Sourceval digit : Base.char t

A character matching Char.is_digit

Sourceval alnum : Base.char t

A character matching Char.is_alphanum

Sourceval space : Base.char t

A character matching Char.is_whitespace

OCaml

Innovation. Community. Security.