Full threadihnorton·The ocaml-re module linked in this article is a neat read. A PCRE parser in ~200 lines: https://github.com/ocaml/ocaml-re/blob/master/lib/re_perl.mlView on HN