To build the examples use ocamlfind ocamlc -thread -linkpkg -package pcre XXX.ml