I want to remove or replace special character in file name.
Heres my code, it works in replacing single special character.
// Remove special characters from the name.
var excludeChars:RegExp = /&/gi;
var revisedname:String=new String();
revisedname=newname.replace(excludeChars,"");
newname=new String();
newname=revisedname;
//sample Output: &filename --> filename
but how to do this in replacing multiple special character using RegExp. How to declare multiple RegEx.
for example:
// &file%name# --> filename
Please help. Thanks