"rodchar" <ro*****@discussions.microsoft.com> wrote in message
news:7E**********************************@microsof t.com...
given a string, if i only wanted to get only letters and number (no
symbols)
is there a function to do this?
i.e.
"Los Angeles, CA"
i don't want the comma.
Function CleanInput(strIn As String) As String
' Replace invalid characters with empty strings.
Return Regex.Replace(strIn, "[^\w\.@-]", "")
End Function
You can use
Return Regex.Replace(strIn, ",", "")
if that's all you need.