Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
\b (?: Length\ +(?<Length>\d+(?:\.\d+)?|\d+-\d+\/\d+)\ +(?:in|ft|cm|m)| Width\ +(?<Width>\d+(?:\.\d+)?)\ +(?:in|ft|cm|m)| Weight\ +(?<Weight>\d+)\ +(?:oz|lb|g|kg) ) \b
/
gmx
Input 1
1
New
Width 3.5 in Weight 10 kg Length 6-3/4 m Note I've set the 'x' (extended) flag to make it easier to view the regex.
Substitution