Use regexp in hasClass