Attributes: Added regexp support for hasClass()