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
/
((?:kilograms?|kilos?|kg)|(?:\d{0,4}(?:\.\d{1,6})))\s*((?:kilograms?|kilos?|kg)|(?:\d{0,4}(?:\.\d{1,6})))
/
gm
Input 1
1
New
This is some text 14.56 kg and some other text This is some text kg 14.56 and some other text
Substitution
This is some text 14.56 kg and some other text This is some text kg 14.56 and some other text