Return to Snippet

Revision: 42169
at February 28, 2011 21:40 by gromitski

Initial Code
var r:RegExp = new RegExp(/[^a-zA-Z 0-9]+/g) ;
yourString = yourString.replace(r, "");

Initial URL

Initial Description
Useful for stripping out backslashes, hyphens and other punctuation

Initial Title
Remove non alpha numeric characters from a string

Initial Tags
regex, actionscript

Initial Language