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
r"
\b(?=[A-Z-0-9]*[A-Z])(?=[A-Z-0-9]*[0-9])[A-Z0-9]+\b
"
g
Input 1
some blah blah blah with id X12354, id 1234Z and id 12P555. All are 50 years old.
Substitution
some blah blah blah with id X12354, id 1234Z and id 12P555. All are 50 years old.