I am very new to regex and JavaScript.
I need a regex for validate only alphanumeric characters and full stop (.), comma(,), colon(:), and semicolon(;).
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.
If you want to verify that the complete line contains only the allowed characters:
var regexp = new RegExp(/^[a-zA-Z0-9.,:;]+$/);^matches at the beginning of the line[]matches one of the surrounded characters+makes the previous element one or more times$matches the end of the lineIf the string is allowed to be empty, then turn the
+into a*