Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
^[A-Z]{3}(([1-9]{4})|([1-9]{1}[A-Z{1}][1-9]{2}))$
/
gm
Input 1
1
ABC1D23 ABC1Z23 ABC1ZA3 AB11Z23 ABC·1234 ABC1234 asasdasdads 1231321321 111ab12 ABC1423 ABC1423ABC ABC 1234 12345 123456 12