/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var re = /\$|\u00A3|\u20AC|,|@|#|~|`|\%|\*|\^|\&|\(|\)|\+|\=|\[|\-|\_|\]|\[|\}|\{|\;|\:|\'|\"|\<|\>|\?|\||\\|\!|\$|\./g; // remove special characters like "$" and "," etc... 'my string'.replace(re, "")