title: jQuery - extract class name that 'starts with' prefix
body: <p>My items have the following classes:</p>
  
  <pre><code>&lt;div class="class-x some-class-1 other-class"&gt;&lt;/div&gt;
  &lt;div class="some-class-45 class-y"&gt;&lt;/div&gt;
  &lt;div class="some-class-123 something-else"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I'm wondering if there is an easy way to:</p>
  
  <ol>
  <li>Grab only all classes with <code>some-class-</code> prefix.</li>
  <li>Remove them from each element.</li>
  <li>Have their names (not corresponding DOM elements) in a variable?</li>
  </ol>
  
  <p>I can easily select such elements with <code>jQuery( "div[class^='some-class-'], div[class*=' some-class-']" )</code> but how its class name could be extracted with the shortest and the most readable code to a variable (can be some global object)?</p>