Hi,
I have a simple job that should take a good programmer only a few minutes.
The code will be used in Zapier and must be working in order to be considered delivered/complete.
Zapier uses Python 2.7
PART 1:
The string is in one of the following formats (INPUT):
2
1 adult
2 adults
1 adult, 1 child
2 adults, 1 child
1 adult, 2 children
2 adults, 2 children
1 adult, 1 child, 1 infant
1 adult, 1 child, 2 infants
1 adult, 2 children, 1 infant
1 adult, 2 children, 2 infants
2 adults, 1 child, 1 infant
2 adults, 1 child, 2 infants
2 adults, 2 children, 1 infant
2 adults, 2 children, 2 infants
The format of the result string needs to be in the following format (OUTPUT):
1,1,1
Examples:
INPUT => OUTPUT
2 adults, 1 child, 1 infant => 2,1,1
2 adults, 2 children => 2,2,0
2 adults, 1 infant => 2,0,1
2 => 2,0,0
PART 2:
I need 3 Python Regular Expressions to extract the OUTPUT from part 1:
INPUT:
2,3,1
OUTPUT:
Regex 1 => 2
Regex 2 => 3
Regex 3 => 1
Only bid if you can do both PART 1 and PART 2.
I am looking for this to be done very quickly.
Max budget is 5USD.
I am a python developer having 6 + experience in IT industry.
I am expert in:
* Python, Web Development (Django, Flask)
* CSS, HTML5, Javascript, AJAX, JQuery, Bootstrap
* REST API application development
* Database Programming (MySQL, Sqlite, MongoDb, PostgreSQL) [with SqlAlchemy]
* Web Scrapping, Selenium, Data Science
* XML & JSON Parsing, Regular expressions
* Network programming(protocols - HTTP, FTP, SSH,TCP etc.)
* Payment gateway integration like PayPal(BrainTree) and Stripe
* Platforms - Linux/Windows