Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Regular Expressions...arrgghhh
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
Regular Expressions...arrgghhh
Miscellaneous
Thread ID:
00953091
Message ID:
00953091
Views:
49
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)
Shawn Dorion
Geo Sektor Dot Com
Website: http://www.geosektor.com

Web Hosting Plans
Visit : http://WebHosting.Applications4u.com/
Next
Reply
Map
View

Click here to load this message in the networking platform