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
/
\b(0x[\da-fA-F]+|[\d]+|0b[01]+)\b
/
g
Input 1
1
New
1234 (decimal) 0x12CD (hex) 0x12cd (hex lowercase) 12CD (hex without the 0x prefix) 0b0010101011 0bh24j