B
B
baijik2016-01-15 08:31:53
Regular Expressions
baijik, 2016-01-15 08:31:53

How to validate AA123123123AA format?

There is a format code 2 capital letters 9 numbers 2 capital letters. How to check for a match with a regular expression?
Example
IU123123123IU
JH888222111PO

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
krypt3r, 2016-01-15
@baijik

What is the difficulty?
/^[A-Z]{2}\d{9}[A-Z]{2}$/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question