Use regexwhitelists rather than an array blacklist