+ 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 Answers
+ 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 đ