jquery (js) string replace problem
<p>i want to highlight all digits in string, i try to cover matched digits with  tag but cann't! Here is my code</p>

<pre><code>regexp = /[1-9]/g;
//$("#task").val() it's my input
title = $("#task").val().replace(regexp,'&lt;span class="int"&gt;$1&lt;/span&gt;');
</code></pre>

<p><strong>$1</strong> - i found in google some samples, where $1 must be first matched value, but it's dosn't work!</p>
