I have a piece of code that i want to check a text string for invalid characters like the single quote, the double dash,the @ sign.
So far i haven't been able to get an accurate response from Regex.IsMatch
My test string is :
string sStringToSearch = "shawn--'test@"
My RegExpresionString is :
string sRegPattern = @"[^--'@]";
Any Ideas.....
test is :
Regex.IsMatch(sStringToSearch, sRegPattern)