Use
System.Text.RegularExpressions
See the following code Example :
Imports System.Text.RegularExpressions
Private Function ConvertToCharNumber(ByVal Value As String) As String
Try
Value = Regex.Replace(Value, "[^\w]", "")
Return Value
Catch ex As Exception
Return Value
End Try
End Function
How to Use:
Messagebox.Show(ConvertToCharNumber("abcd-@#$1234"))
I hope it will help you. :)