+ 1
How can I remove unwanted characters from string using javascript 🤔
String="how$a%r#e yo&u?"; How can I remove all of the symbols from this string using javascript.🤔?
2 Respuestas
+ 5
U can use
String.replace(regex , placeholder)
var Sring="how$a%r#e yo&u?";
console.log(Sring.replace(/[^a-zA-Z ]/g , ''))
Removing all special character
+ 2
Pariket Thakur thank you 😊