Remove all class from an element matching a specific format, using jQuery
<p>I asked a similar question earlier, however my wording provided correctly submitted answers but not for the question I was actually trying to answer:) In an attempt to not muddle SO's listings, I've posted this question separately.</p>

<p>Given the HTML below, what is the most convenient means of removing all the <em>classes</em> from #item_3 that begins with "child_"? </p>

<p>The solution needs to be able to keep the "stays_put" class and not effect any of the other list elements.</p>

<pre><code>&lt;ul id="list"&gt;
  &lt;li id="item_1" class="child_1 child_12"&gt;Item 1&lt;/li&gt;
  &lt;li id="item_2" class="child_4 child_6"&gt;Item 2&lt;/li&gt;
  &lt;li id="item_3" class="child_3 child_1 stays_put"&gt;Item 3&lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>The question that I originally asked, can be found here.
<a href="http://stackoverflow.com/questions/5317058/using-reg-ex-in-jquery-selection">Using Reg Ex in jQuery selection</a></p>
