How do you search a string for a series of special characters?
Posted on 2009-04-30
I have users entering data in a form, but I want to verify they didn't use special characters in their entries. I'm new to C#, but am a programmer in other languages.
I wanted to use Regular Expressions, but not sure how to implement it. I'm not sure how to list the characters I was to exclude but include some of the standards like left and right single quotes, left and right double quotes, single and double quotes all together, en dash and em dash, forward and back slashes, at sign, pound sign and star.