जावास्क्रिप्ट स्ट्रिंग से सभी विशेष वर्णों को हटाने के लिए, आप निम्न कोड को चलाने का प्रयास कर सकते हैं -
उदाहरण
<html>
<head>
<script>
var str = "@!Welcome to our website$$";
document.write(str);
// Removing Special Characters
document.write("<br>"+str.replace(/[^\w\s]/gi, ''));
</script>
</head>
<body>
</body>
</html>