Remove all non alphanumeric characters
Remove non alphanumeric characters
The String class represents character strings. Strings are constant, their values cannot be changed after they are created. Alpha stands for alphabets and numeric stands for number. So a non alpha numeric character will be any symbol without letters or numbers (digits). The folowing program shows how to remove all non alphanumeric characters from a string.
Related Topics: String Operations , Remove spaces from a string ,Remove new line from a string , String to Integer ,
Convert String to DateTime
How to strip non-alphanumeric characters
C#
VB.Net

Output : helloworld100010
How to remove alphabetic characters from a string
using System.Text.RegularExpressions;
C# 
VB.Net

Output : 250
How to remove numbers from string
using System.Text.RegularExpressions;
C# 
VB.Net

Output: Two hundred and fifty
NEXT.....Character Encoding