Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
C#
c# filter non alphanumeric characters
travis
Programming language:
C#
2021-05-17 02:34:41
-1
Q:
c# filter non alphanumeric characters
Lucio Andriulo
Code:
C#
2021-04-08 22:01:35
Regex rgx = new Regex("[^a-zA-Z0-9 -]"); str = rgx.Replace(str, "");
0
Tags
character
filter
characters
Related
c# check if string is only letters and numbers
how to check that string has only alphabet in c#
c# repeat string x times
generate random alphanumeric string c#
c# replace all non numeric characters
remove all non alphabetic characters from string c#
New to Communities?
Join the community