+ 1
Can somebody create a regex for me that matches all special characters(Except white space)?
I need a javascript regex that matches all special characters. var specialcharacters = txt.match(//SpecialCharactersGoHere);
3 Antworten
+ 3
.
Yeah that's the RegExp
+ 2
Here, try this :
txt.match("([^A-Za-z0-9]|\S)+");
+ 1
txt.match(“[\W_]+”)