जावास्क्रिप्ट स्ट्रिंग से सभी स्पेशल कैरेक्टर्स हटाने के लिए, आप निम्नलिखित कोड चलाकर देख सकते हैं:
उदाहरण
<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>