added regex support for whitelist/blacklist