This is a very urgent and simply project. I need someone who very well familiar with regular expression and can help me modify the data from one format to another. I have table where one field contains data like this:
1/2 cup (85 g)
Per 1 Muffin
1/4 cup, 38g
1/2 cup (125 mL)
Per 1 cup cooked (50g dry)
1 pancake (1/4 cup mix prepared)
1 potato / 380g
Those are the Serving Sizes - few per row. I need to have separate info about every serving size from every row.
So I need php function which will receive 1 field value(like this: "1 potato / 380g") and return array in this format: array('value' = 'unit'). (like this: array('1' = 'potato', '380' = 'g'))
In attachment more examples of data which I have.
Payment through PayPal only.