I have the following regular expression but I want the text box to allow the dash character
^[0-9a-zA-Z \/_?:.,\s]+$
Anyone know how I can do this?
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 dash needs to be the first/last character in the character class in order to be used literally:
You could also escape it, if not the first/last: