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

Executing PowerShell scripts from C#

HOW TO Use the NumericUpDown Control

Exposing Agile Software Development Myths