quick regex whitelist implementation