Return to Snippet

Revision: 15572
at July 23, 2009 04:40 by weavermedia


Updated Code
// strip spaces from oldString

var newString:String = String(oldString.replace( /\s/g, "" ));

Revision: 15571
at July 10, 2009 12:30 by weavermedia


Initial Code
// strip spaces from String

var newString:String = String(oldString.replace(/ /,""));

Initial URL

                                

Initial Description

                                

Initial Title
Strip spaces from a String with RegEx

Initial Tags
regex

Initial Language
ActionScript 3