Đang Thực Hiện

134532 Simple data parsing function


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 tbsp

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.



Kĩ năng: Bất kì công việc gì, PHP

Xem nhiều hơn: regular expression with examples, regular expression no, regular expression info, regular expression in c, regular expression function, regular expression c, regular expression a, regular expression 0, examples regular expression, potato, php function , function, size function, regular expression help, php table array, php expression, regular expression data, payment function, php help function, simple array project, php function payment, parsing php, php parsing, parsing project, parsing data

Về Bên Thuê:
( 0 nhận xét ) Novotroickoye, Ukraine

ID dự án: #1880704