element?-无人及你的回答
element?
I am Using a Regional language unicode font-face in my site but the numbers are not looking good.
So I want to apply new font-style or css to numbers only..
Better with this
$('p').html(function(i, v){ return v.replace(/(\d+)/g, '$1'); });
With + you avoid one span per complete number (span for 321), not one per each number found (span for 3 for 2 and for 1)