What would be the best way to simply take a string like
var myString:String = "Thi$ i$ a T#%%Ible Exam73@";
and make myString = "thiiatibleeam";
or another example
var myString:String = "Totally Awesome String";
and make myString = "totallyawesomestring";
In actionscript 3 Thanks!
Extending @Sam OverMars’ answer, you can use a combination of String’s replace method with a Regex and String’s toLowerCase method to get what you’re looking for.
The regular expression means: