Allows $.hasClass and $.removeClass to receive a RegExp parameter.