The string to strip the quantity from
The string with the quantity removed
stripQuantityFromString("Some reagent - 100g") // Returns "Some reagent -"
stripQuantityFromString("120 grams, of some reagent") // Returns "of some reagent"
stripQuantityFromString("43.4 ounce of some reagent") // Returns "ounce of some reagent"
stripQuantityFromString("1200 milliliters of some reagent") // Returns "milliliters of some reagent"
stripQuantityFromString("1.2 L of some reagent") // Returns "L of some reagent"
Strips the quantity from a string. This is useful for when some suppliers don't have products listed as variants, but instead have multiple products with a quantity in the name. Using this function, we can get the name of the product without the quantity, which may be identical to the other variations. Making it easy to group the products into a single listing with multiple variants.