How to string Replace use
var mystring:string="<font face='arial'> <b>about telcon</b></font>"
i need remove face tag "face='arial'".
finally need below string possible.
"<font> <b>about telcon</b></font>"
if want leave <font> tag, use regular expression replace whole <font...> tag, in...
var regexp:regexp = /<font.*?>/;
mystring = mystring.replace(regexp, "<font>");
but if want remove face portion of it, use...
var regexp:regexp = / face.*'/;
mystring = mystring.replace(regexp, "");
More discussions in ActionScript 3
adobe
Comments
Post a Comment