I'm curious how, in ActionScript 3, to parse the font attributes of an HTML formatted content string. Lets take the following example content string:
var content:String = '<font face="Archer-Bold" size="12" color="#000000">My Content</font>';
I'd like to parse that string and create an object with the font attributes in it. So a resulting object would trace the following:
trace( fontInfo.name ); // output: "Archer-Bold"
trace( fontInfo.size ); // output: "12"
trace( fontInfo.color ); // output: "#000000"
I'm guessing regular expressions is the way to go, but I know nothing about them. Thoughts?