Module Regex.Exceptions
exception
Regex_no_such_subpattern of int * int
Regex_no_such_subpattern (n, max)
meansn
was requested but onlymax
subpatterns are defined (somax
- 1 is the highest valid index)
exception
Regex_no_such_named_subpattern of string * string
Regex_no_such_named_subpattern (name, pattern)
exception
Regex_submatch_did_not_capture of string * int
Regex_submatch_did_not_capture (s, i)
means thei
th subpattern in the regex compiled froms
did not capture a substring.