I am looking for regular expression that evaluates below.
0-9 a-Z A-Z - / '
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The C# version of this pattern is:
Used in code:
or
Note that the
-is at the very end of the character class (the part in the brackets). For-to mean a literal hyphen inside a character class, it must be at the beginning or end of the class (i.e.[-blah]or[blah-]), or escaped with a backslash:[ab\-c]will matcha,b,c, or-.Note also the
@at the beginning of the quoted string. This isn’t important for this pattern, but it’s a good habit to get into with C# regex. Regular expressions often contain backslashes, and the@"..."form will allow you to use backslashes in your pattern without having to escape them.