Answers for "string replace special characters javascript"

4

remove special characters from string javascript

var str = "Hello^# World/";
str.replace(/[^a-zA-Z ]/g, ""); // "Hello World"
Posted by: Guest on June-06-2020
7

remove special characters from string python

>>> string = "Special $#! characters   spaces 888323"
>>> ''.join(e for e in string if e.isalnum())
'Specialcharactersspaces888323'
Posted by: Guest on May-20-2020
0

java regex replace all characters before

String s = "the text=text";
String s1 = s.substring(s.indexOf("=")+1);
s1.trim();
Posted by: Guest on February-29-2020

Code answers related to "string replace special characters javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language