Return to Snippet

Revision: 13975
at May 14, 2009 10:11 by sidneydekoning


Initial Code
// pvalue has whitespace
var whitespace:RegExp = /(\t|\n|\s{2,})/g; 
var trimmedValue:String = pValue.replace(whitespace, "");
trace(pValue, trimmedValue);

Initial URL

                                

Initial Description

                                

Initial Title
Strip Whitespace with RegExp in AS3

Initial Tags

                                

Initial Language
ActionScript 3