another regex hasher

I actually like the one hughes submitted better, but since there are already 3 different implementations of this I thought I'd just add a fourth.