How to Remove Special Characters VB . Net

 Public Function GetStringWithoutSpecialChar(ByVal strtoclean As String) As String
        Return Regex.Replace(strtoclean, "[^\w\\-]", "")
    End Function

Comments

Popular posts from this blog

HOW TO Use the NumericUpDown Control

How to show help text in page on mouse move

How to Do a Remote Shutdown for a PC on a LAN