Using a regular expression, you match numbers that wrap them in the gap with the class. No jQuery required.
string.replace(/\d+/g,function(match){ return "<span class='number'>" + match + "</span>"})
You can control the design of the number with css:
.number{ color:red; }
source share