hi, i want to highlight all digits in string, i try to cover matched digits with tag but cann't! Here is my code
regexp = /[1-9]/g;
//$("#task").val() it's my input
title = $("#task").val().replace(regexp,'<span class="int">$1</span>');
$1 - i found in google some samples, where $1 must be first matched value, but it's dosn't work!