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
/
(?:(?<multiplier>[1-9][0-9]*)\s*[xX\u00D7]\s*(?=[1-9]))?(?<quantity>[1-9][0-9]*(?:[.,]\d+)*(?:\s\d{3})*)\s?(?<uom>(?:milli|kilo|centi)?(?:ml|ounce|g(?:allon|ram|al)|each|ea?|pound|quart|q(?:uar)?t|piece|pc|lb|(?:met|lit)[re]{2})s?|fl\.?\s?oz|oz|k[mg]?|gm?|l|[cm]?[gl])s?(?!\/mol)(?![A-Za-z])
/
gim
Input 1
1
New
Calcium Chloride Powder - 4 Ounces in 1 Bottle Germanium pellets 99,999% - 10g Germanium pellets 99,999% - 10g "SILICIC ACID, -100 MESH, FOR CHROMATOGRAPHY - 500 G" Leg length 150 mm. Potassium 99,99% - 10g Silver iodide 10g Variant:, 120ml, Aantal:, 500pcs 'Alcohol (Ethanol), Pure, 140 Proof, (70%), made with USP Certified Ethyl Alcohol and USP Grade Water, 55 gallon, New Lined Metal Drum' 1 Piece 1 Pieces 1 cm 1 lb 10GM 1 piece 3,456.78 mgs 3×10g 3 x 10g 3×10g 10 x foobar 123 pieces 1 pound 103x1lb 10 cm 25 cm 25 cm. 4 Ounces 43 ounce 43.4 lbs 43.4 ounce 43.4 ounces 43.4 pounds 43.6g 43g 64 gram 64.4 L 64.4 gram 64.4 l 64.4 qt 218.14 g/mol # should NOT match
Substitution
Calcium Chloride Powder - 4 Ounces in 1 Bottle Germanium pellets 99,999% - 10g Germanium pellets 99,999% - 10g "SILICIC ACID, -100 MESH, FOR CHROMATOGRAPHY - 500 G" Leg length 150 mm. Potassium 99,99% - 10g Silver iodide 10g Variant:, 120ml, Aantal:, 500pcs 'Alcohol (Ethanol), Pure, 140 Proof, (70%), made with USP Certified Ethyl Alcohol and USP Grade Water, 55 gallon, New Lined Metal Drum' 1 Piece 1 Pieces 1 cm 1 lb 10GM 1 piece 3,456.78 mgs 3×10g 3 x 10g 3×10g 10 x foobar 123 pieces 1 pound 103x1lb 10 cm 25 cm 25 cm. 4 Ounces 43 ounce 43.4 lbs 43.4 ounce 43.4 ounces 43.4 pounds 43.6g 43g 64 gram 64.4 L 64.4 gram 64.4 l 64.4 qt 218.14 g/mol # should NOT match