Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Regular
Expressions
101
Regular
Expressions
101
Upgrade to Pro
Enterprise
Regular Expression
r"
[A-Z]{2}\s?(\d{2})\s?([A-Z]{2})\s?(\d{4})
"
gm
Test String
New
GH 12RZ 9901
Substitution
Processing...