/ Published in: ActionScript

Useful for stripping out backslashes, hyphens and other punctuation
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var r:RegExp = new RegExp(/[^a-zA-Z 0-9]+/g) ; yourString = yourString.replace(r, "");
URL: http://gromitski.com/blog/removing-non-alpha-numeric-characters-from-a-string/
Comments
