I am trying to wrap a span around all numbers in a div so I can style them accordingly.
I have searched for some javascript to do this with no luck on being able to
Here:
elem.innerHTML = elem.innerHTML.replace( /\b(\d+)\b/g, '<span>$1</span>' );
Live demo: http://jsfiddle.net/ujA86/