Find Jobs
Hire Freelancers

REGEX Recipe Ingredient Decode

$50-100 USD

Dibatalkan
Disiarkan hampir 9 tahun yang lalu

$50-100 USD

Dibayar semasa penghantaran
Hello, I am looking for somebody to write a regex script/function that will decode recipe ingredients into Ingredient, Modifiers, Amount, Unit. The problem is that not all recipes have the ingredients in the same format ex: 1 avocado // no units (assume each) also no modifiers 2 cups all purpose flour, sifted // has everything olive oil // no amount, units, nor modifiers brown sugar 2.5 cups // reversed, no modifier brown sugar 2 1/2 cups // mixed number brown sugar 2½ cups //mixed number with special char 2 #10 cans of tomato soup tomato soup #10 can I am hoping to have this written in php and if possible to have comments included to edit myself if I find a format not covered. I know it cannot be perfect and will not catch all cases, could it give me an error flag if not found. I can include a list of all units and modifiers I know of to assist.
ID Projek: 7874580

Tentang projek

3 cadangan
Projek jarak jauh
Aktif 9 tahun yang lalu

Ingin menjana wang?

Faedah membida di Freelancer

Tetapkan bajet dan garis masa anda
Dapatkan bayaran untuk kerja anda
Tuliskan cadangan anda
Ianya percuma untuk mendaftar dan membida pekerjaan
3 pekerja bebas membida secara purata $238 USD untuk pekerjaan ini
Avatar Pengguna
Hello! With 98% to 99% completion rate, 800+ successfully completed projects, and a 5.00 reputation (maximum possible, 5.0) (Yes, not even 4.99 average rating, can be verified on my profile page https://www.freelancer.com/u/rajeshsonisl.html !!)... you can never go wrong choosing me :) I look forward to your reply. Thanks. Kind Regards, Rajesh Soni
$526 USD dalam 3 hari
5.0 (580 ulasan)
7.7
7.7
Avatar Pengguna
Hello, I believe RegExp is not usable here. At least, what first comes to mind is that a more complicated algorythm is needed, such as testing each pattern for matching multiple parameters. I can think of this, if you are interested. Regards, Alexander
$100 USD dalam 2 hari
5.0 (19 ulasan)
4.6
4.6
Avatar Pengguna
Your requirement cant be fullfil by regex, but it can be possible by function, I can write a fuction that will seperate all. lets start
$88 USD dalam 3 hari
4.0 (1 ulasan)
1.4
1.4

Tentang klien

Bendera UNITED STATES
Green Cove Springs, United States
0.0
0
Kaedah pembayaran disahkan
Ahli sejak Apr 20, 2015

Pengesahan Klien

Terima kasih! Kami telah menghantar pautan melalui e-mel kepada anda untuk menuntut kredit percuma anda.
Sesuatu telah berlaku semasa menghantar e-mel anda. Sila cuba lagi.
Pengguna Berdaftar Jumlah Pekerjaan Disiarkan
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuatkan pratonton
Kebenaran diberikan untuk Geolocation.
Sesi log masuk anda telah luput dan telah dilog keluar. Sila log masuk sekali lagi.