May I know how to I create a name cleaning function for sun.org.mozilla.javascript?
I want to strip off invalid character(`~!@#$%^&*()-=+\|/?.>,<;:'”[{]}) in the file name and replace it with a space.
function f ()
{
var x = jobdescription.replace(/\|&;\$%@"<>\(\)\+,/g, "");
return x;
}
f ();
1 Answer