How to Remove Special Characters VB . Net
Public Function GetStringWithoutSpecialChar(ByVal strtoclean As String) As String
Return Regex.Replace(strtoclean, "[^\w\\-]", "")
End Function
Return Regex.Replace(strtoclean, "[^\w\\-]", "")
End Function
Comments
Post a Comment