OCaml pattern-matching extended with regexps