title: Jquery get matched class
body: <p>I have some html divs with this classes: </p>
  
  <pre><code>&lt;div class="nav icon-home nav_header"&gt;&lt;/div&gt;
  &lt;div class="nav icon-address nav_header"&gt;&lt;/div&gt;
  &lt;div class="nav icon-car nav_header"&gt;&lt;/div&gt;
  &lt;div class="nav icon-info nav_header"&gt;&lt;/div&gt;
  &lt;div class="nav icon-user nav_header"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I want to use jquery to get the icon class name.</p>
  
  <p>I tried this code:<br>
  <code>jQuery('.nav_header').each(function() {
      var icon_class = jQuery(this).attr('class').match(/icon-*/);
      console.log( icon_class ); 
  });</code></p>
  
  <p>But it returns the div object.</p>
  
  <p>Thank you for your support.</p>