Regex - Identify Fractions
问题 I need to identify a fraction from a form field in a recipe database using a Regex. Ingredients will be entered in a two part form fields. Field one is the amount, Field two is the ingredient. I then need to break field one into its fractional components to input into the database. Possible entries include: 1, 1/2, 1 1/2, and any of the previous with words attached such as 1 cup, or 1/2 tbsp. the hardest I foresee would be: [2 28 oz. cans] where 2 is the number, and 28 oz. cans would be the