Define numbers in a html text with jquery
html, jquery
Solution
Since you asked for a JQuery solution, I transformed @raam86 's answer to jQuery, it looks like this:
$("div").html($("div").text().replace(/\d+/g,
function(m){ return "<span class='number'>" + m + "</span>" }));
Demo
Problem
I want to all numbers in my html text have different font-size with other character (or different font-family or different font-weight or ...). How to define numbers character? Is this possible with jquery? Can you help me?!