title: jQuery match part of class with hasClass
body: <p>I have several div's with "project[0-9]" classes:</p>
  
  <pre><code>&lt;div class="project1"&gt;&lt;/div&gt;
  &lt;div class="project2"&gt;&lt;/div&gt;
  &lt;div class="project3"&gt;&lt;/div&gt;
  &lt;div class="project4"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I want to check if the element has a "project[0-9]" class. I have <code>.hasClass("project")</code> but I'm stuck with matching numbers.</p>
  
  <p>Any idea? </p>