type regexp =
Type of a regular expression.
exception Regexp_error of Input.buffer * int
Exception that is raised when a regexp cannot be read.
val accept_empty : regexp -> bool
read_regexp re buf pos attempts to parse using the buffer
buf at position
pos using the regular expression
re. The return value is a triple of the parsed string, the buffer after parsing and the position after parsing. The exception
Regexp_error(err_buf, err_pos is raised in case of failure at the given position.