I was trying to parse the style attribute of a simple <font> tag and convert it back to simple html attributes. For instance, I have this string <font style="font-family:tahoma;font-size:24px;color:#9900CC;"> and I’d like to somehow convert it to <font size="24" color="#9900CC" face="tahoma"> I know this can be done with regex but I have no idea how?
thanks
So here is the simplest solution I’ve made so far its a dirty solution but it works like a charm: