/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// pvalue has whitespace var whitespace:RegExp = /(\t|\n|\s{2,})/g; var trimmedValue:String = pValue.replace(whitespace, ""); trace(pValue, trimmedValue);