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"
(?<![^\sa-z])\d+(?![^\sa-z])
"
gm
Input 1
15x20x30 -> 'values': [15,20,30] 15bits -> 'values': [15] 15 -> 'values': [15] x15 -> 'values': [15] but should not match: 456.48 888,12 6,4.8,4684.,6
Substitution
15x20x30 -> 'values': [15,20,30] 15bits -> 'values': [15] 15 -> 'values': [15] x15 -> 'values': [15] but should not match: 456.48 888,12 6,4.8,4684.,6