Yes.
var pt = string.match(/font-size:([\d.])+pt/)[1];
What do you want to do with that?
Lekensteyn
2010-08-31 07:39:37
Yes.
var pt = string.match(/font-size:([\d.])+pt/)[1];
What do you want to do with that?
In the case you just want to get the font size of the respective element I would recommend not relying on parsing the string but rather access this property by using the DOM – as for example something like:
document.getElementsByTagName('font')[0].style.fontSize