Types for regexps.
from the syntax used by the
Str module from the OCaml standard
The type for regexps.
The type for match result.
regexp but matching will be performed in a case
Regexp constructor with flag that allow for case-insensitive search or multiline search (the global flag is always set).
Escapes characters with special meaning in the regexp context.
regexp_string s creates a regexp matching the exact string
regexp_string but matching will be performed in a case
matched_string r return the exact substring that matched when evaluating
matched_group r i is the
ith group matched. Groups in matches are
obtained with parentheses. Groups are 1-based.
global_replace r s by replaces all of the matches of
replace_first r s by replaces the first match of
split r s splits the string
s erasing matches with
split (regexp " ") "toto tutu tata" is