Answers for "replace special charachters in string"

0

Remove special characters from string

var outString = sourceString.replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi, '');
Posted by: Guest on May-10-2021
0

replace special from beginning of string

s="Hello? Python3?"s1=s.replace("$","")print (s1)#Output:Hello Python3
Posted by: Guest on April-27-2021

Code answers related to "replace special charachters in string"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language