var regWordonly = /[^a-zA-Z0-9_\-]/g;
text = text.replace(regWordonly, “”);