[flexcoders] Re: Actionscript replace characters from a string

2008-02-05 Thread zvjerka24
Here is part of code using regular expressions var myPattern:RegExp = / /g; var myString:String = myString.replace(myPattern, ""); --- In flexcoders@yahoogroups.com, "hworke" <[EMAIL PROTECTED]> wrote: > > > > Hi, > > I am trying to replace all the " " (Space) characters > from a given s

[flexcoders] Re: Actionscript replace characters from a string

2008-02-05 Thread ben.clinkinbeard
I am still a fan of this oldie but goodie: myString.split(strToRemove).join(strToInsert); HTH, Ben --- In flexcoders@yahoogroups.com, "hworke" <[EMAIL PROTECTED]> wrote: > > > > Hi, > > I am trying to replace all the " " (Space) characters > from a given string. The replace function o