Answers for "regex remove all non alphanumeric"

5

remove non alphanumeric characters javascript

input.replace(/\W/g, '') //doesnt include underscores


input.replace(/[^0-9a-z]/gi, '') //removes underscores too
Posted by: Guest on June-01-2020
0

c# filter non alphanumeric characters

Regex rgx = new Regex("[^a-zA-Z0-9 -]");
str = rgx.Replace(str, "");
Posted by: Guest on March-25-2020
0

remove all non alphabetic characters from string c#

var cleanString = new string(dirtyString.Where(Char.IsLetter).ToArray());
Posted by: Guest on October-30-2020
0

regex remove all non alphanumeric except spaces

/[^[:alnum:]\x20/gi
Posted by: Guest on November-21-2020

Code answers related to "regex remove all non alphanumeric"

Code answers related to "Javascript"

Browse Popular Code Answers by Language