I’m just working on some JavaScript to accept some user input via jQuery. What I’m trying to validate is 3 capital characters followed by 6 integers.
Anyone know how this can be done using a regular expression in JavaScript?
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 simplified version could be
/^[A-Z]{3}\d{6}$/.A more ‘compatible’ version would be to use
/^\p{Lu}{3}\pN{6}$/.