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
"
(?<=\d)(?=k?g\b)|(?<=[^\d\s][.,])(?=\d)
"
g
Input 1
1
New
bacon 1,54g eggs 600g 600a 600G jalapeno.300g this, is a test.3.4444.5 times, 4,5.3 1,000,000.00 .3 times 123abc