How can I check special characters are there (String) or Display on label?
I Use this but it is only count
Dim input As String = "Hi! Hello, How are you?"
Dim pattern As String = "[!""#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~\s]"
Dim matches As MatchCollection = Regex.Matches(input, pattern)
MessageBox.Show(String.Format("There are {0} special characters in the input '{1}'", matches.Count, input))
how to display what special Chr are there in this string