My text box accept alphanumeric and on submit button click I need to make sure that textbox contains should at least 1 char (a-z|A-Z) and 1 digit (0-9).
Please help me in regex pattern.
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.
/[a-zA-Z]+[0-9]+/Should be what you neededit
Here’s one that takes either alpha->numeric or numeric->alpha:
([a-zA-Z]+[0-9]+)|([0-9]+[a-zA-Z]+)Note that you need to
match_allbecause this will match each group ofletter-numberandnumber-letteras individual matches.