No, that's not the right. His regular expression checks that all the characters are valid. The regular expression that I was helping you with checks if any of the characters are not valid.
Do you understand the difference?
His was checking that only cats, dogs, and chickens were present.
Mine was checking if any of them were not cats, dogs, or chickens.
Both achieve the same end goal, just from different directions.