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
~
^(?:(?<prefix>[A-Z]+)[\s/-]*)?(?<number>\d{2,9})(?:[\s/-]*(?<suffix>[A-Za-z]+))?(?:[\s/-]*(?<joint>\d{1,2}))?$
~
gm
Unit Tests
There are no unit tests, click
here
to add some.