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
~
^(\d+(?:\s+\d+/\d+)?|\d+/\d+)\s+((?:\d+(?:-?in(?:ch)?|")?\s+)*\S+(?:\s+to\s+(?:\d+(?:-?in(?:ch)?|")?\s+)*\S+)?)
~
gm
Input 1
1
New
6 4- to 5-mm-diameter plugs 6 large bricks 1 1/3 shipment concrete 1 (14- to 15-oz) gold bars 16 3 1/2- to 4-inch-diameter caps 1 1/2 tons sand 2 1 1/4- to 3-inch diameter caps 1/3 shipment cement
Extraction
6 4- to 5-mm-diameter plugs 6 large bricks 1 1/3 shipment concrete 1 (14- to 15-oz) gold bars 16 3 1/2- to 4-inch-diameter caps 1 1/2 tons sand 2 1 1/4- to 3-inch diameter caps 1/3 shipment cement