Clip content with jQuery
<p>to just get the number inside span, use the code below:</p>

<pre><code>&lt;h3&gt;test &lt;span&gt;inside 123458&lt;/span&gt;&lt;/h3&gt;


alert($('h3 span').text().match(/\d/))
//123458
</code></pre>

<p>And to just get the content h3, without taking the span of content, how?</p>
