/ Published in: ActionScript 3

Expand |
Embed | Plain Text
// strip spaces from oldString var newString:String = String(oldString.replace( /\s/g, "" ));
Comments

You need to login to post a comment.
weavermedia on 07/10/09
4 people have marked this snippet as a favorite
weavermedia
sweetbabyyoung
quan
adrianparr
// strip spaces from oldString var newString:String = String(oldString.replace( /\s/g, "" ));
You need to login to post a comment.
This apparently only strips a single space out?
Well spotted richarddas - this is now fixed.