Are you using a regular expression for the first parameter? If so, add a "g" to the end of the expression (for global, e.g. replace *all* instances) -----Original Message----- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of hworke Sent: 05 February 2008 11:47 To: flexcoders@yahoogroups.com Subject: [flexcoders] Actionscript replace characters from a string
Hi, I am trying to replace all the " " (Space) characters from a given string. The replace function of the string class only remove the first instance. Is there any builtin function that will remove all? ______________________________________________________________________ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. ______________________________________________________________________