Add regex whitelist

I couldn't actually get the tests running but I believe it should work.