posix character classes for pcre

I mainly need `[:blank:]` but have included the rest for the sake of
completeness.

P.S. should the pcre parser be rewritten with ocamllex and ocamlyacc? It's getting kind of hairy IMO