Add regex whitelist

I couldn't actually get the tests running but I believe it should work.
@ryanong, have you had a chance to try it with `Rexexp`?