I make users input some tags. These tags should contain only chars:
[a-z][A-Z]- numbers
[0-9] - and the character
-
If any other char is present, it should be removed from the string.
Is this possible? What is the fastest way to do that?
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.
No need for jQuery:
Will remove anything that’s not a letter, a number or a dash.