I would like to remove all special characters (except for numbers) from a string. I have been able to get this far
var name = name.replace(/[^a-zA-Z ]/, \"\"); <
To remove the special characters, try
var name = name.replace(/[!@#$%^&*]/g, "");