Merge pull request #623 from jossgray/master

strrchr const correctness. Fixes build in msvc.
Problem: trex code is flaky

In real use this code breaks; it does not, for instance, return
capture groups correctly. I've switched to another similar piece
of code, SLRE, which was MIT-licensed for v1.0 (has since gone
to GPLv2 which isn't useful for us).

Solution: drop trex code and replace with slre v1.0.

FWIW I also extended the regexp syntax to support \w, \W, \D, \a,
and \A.
Problem: zrex API is a little clunky

Solution: various cleanups to make this more explicit. Since trex
didn't work, we can assume no-one was using this class yet, so the
API change won't break existing applications.
Fixed zrex man page
Updated man pages
Removed debugging code
Merge pull request #624 from hintjens/master

Problem: trex code is flaky