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

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support