I use /^[a-zA-Z]+$/ to check if the string is alphabetic and /^((?!some|words|in|blacklist).)*$/ to check if it contains certain words.
/^[a-zA-Z]+$/
/^((?!some|words|in|blacklist).)*$/
How to check both conditions in one regex pattern?
Using
/^(?!some|words|in|blacklist)[a-zA-Z]+$/