종료

Python regular expression to solve

Try to answer this question with python regular expression. I need a regular expression who can do the following:

given this str data

data = '378794,"Nov 15 2004 9:01:00:596AM",2002,"Jaguar","X Type 3.0","Platinum","Charcoal","1,24,5000,431,18775,32353,20000,

0,36,5000,399,15481,32353,20000,

0,48,5000,396,12187,32353,20000,","1,48,10000,638,5.95,,

0,48,15000,521,5.95,,

0,48,20000,403,5.95,,","METALIC, X1 PREMIUM PACKAGE, X3

WEATHER PACKAGE, HID XENON LIGHTS."'

Write a regular expression that will return a list of items separated by commas... BUT commas inside quotes ( example "aaa,bbb,aaa") should be ignored.

The final result using your regular expression should look like

result = [

378794,

"Nov 15 2004 9:01:00:596AM",

2002,

"Jaguar",

"X Type 3.0",

"Platinum",

"Charcoal",

"1,24,5000,431,18775,32353,20000,0,36,5000,399,15481,32353,20000,0,48,5000,396,12187,32353,20000,",

"1,48,10000,638,5.95,,0,48,15000,521,5.95,,0,48,20000,403,5.95,,",

"METALIC, X1 PREMIUM PACKAGE, X3WEATHER PACKAGE, HID XENON LIGHTS."

]

This is a test project.

기술: Python, 수학, 정규표현식(Regular Expressions)

고용주 소개:
( 0건의 리뷰 ) Barnsley, United Kingdom

프로젝트 ID: #20739981

이 프로젝트의 입찰 현황은 다음과 같습니다. 입찰자: 29명, 평균 입찰가: £388

etuannv

Hi there, I'd like to you a sample result: [login to view URL] I have 4+ years’ experience at Web scraping. If you'd like to view my previous work, take a look at my profile https://www.freelancer.com/u/etuannv 더 보기

£250 GBP (7일 이내)
(72 리뷰)
6.5
Mickelson

Hi Nice to meet you. I have enough experience in python script. Below the libraries are I used in past project. selenium, pandas, matplotlib, lxml, beautifulsoup, scipy, and other useful libraries. I have written some 더 보기

£250 GBP (1일 이내)
(65 리뷰)
6.2
schoudhary1553

Hello, I have gone through your job posting and become very much interested to work with you. I am an expert in this field. I have already completed several projects like this. For evidence you can see my profile. Pl 더 보기

£400 GBP (5일 이내)
(37 리뷰)
5.8
dungforever

Hello mate I am very glad to place a bid to your project I have read your description carefully and i am so interested in your project. i am good at regular expression processing programming with Regrex package I am 더 보기

£250 GBP (1일 이내)
(72 리뷰)
5.8
polarjin2017

Hello? Nice to meet you. I am excited to work with you on this project. I am ready to start work immediately. I have done a lot of jobs with python. python scrap, pysql, python tkinter GUI etc Here is on of my scr 더 보기

£250 GBP (10일 이내)
(21 리뷰)
5.2
ryongshan

Hi! How are you? I am RyongShan. I have reviewed your posting carefully and am very excited in your project because i have +11 years enough experience in Python and Regular Expression Area. I can meet your requirements 더 보기

£733 GBP (1일 이내)
(8 리뷰)
4.7
mehullala1706

Hello, I have extensive experience in python and I can surely do this task. I will do it within budget and timeline.

£250 GBP (3일 이내)
(7 리뷰)
4.5
AhmadSameer

Hey there, I'm a System Engineer with coding skills. I had developed tons of scripts using Python. I can help. Regards.

£500 GBP (7일 이내)
(12 리뷰)
4.5
eng400

Hi,i'm a data scientist with a BS degree in computer science i will do your task as fast as i can and i will achieve it exactly as you want,don't worry about any thing contact me for discussion

£250 GBP (5일 이내)
(14 리뷰)
3.7
hayat38402

----Interested Project. Professional Math & Python & Matlab & Machine Learning expert. Best result in time----- Hello sir, I read your description very carefully. I am very interesting for your project because I have 더 보기

£500 GBP (7일 이내)
(4 리뷰)
3.9
chirag9700

Hello I read your requirement and i have enough experience in this task. Shell we talk more regards your requirement ?

£500 GBP (7일 이내)
(2 리뷰)
4.2
MaMingMing

Dear client, I love to bid on your project. I have read your job description carefully and I have understood your idea about this project perfectly. As I am an experienced web & mobile developer, I can manage your pr 더 보기

£500 GBP (7일 이내)
(1 리뷰)
3.7
origami07

Salutations, I have been developing scripts in the python environment for many years. I can intern your tasks. I have experience with all of the following: Python / Deep Learning / Machine Learning / Image Processin 더 보기

£500 GBP (7일 이내)
(11 리뷰)
3.8
uzairnaseer920

JUST DO YOUR WORK IN CHEAP RATE. WILL DO LESS THAN BID I hold a degree in Computer Engineering. I minored in Programming with a focus in following skills: Java programming with GUI (JAVA, JAVAFX) Python Programming ( P 더 보기

£500 GBP (7일 이내)
(12 리뷰)
3.0
zorik9

I'm the best candidate, because I've already solved this problem. If you accept my offer - I will send you the solution immediately.

£250 GBP (1일 이내)
(0 리뷰)
0.0
sabrinaxing25

I can definitely help you with the project since I am very good with it. Let me know if you want me to help you

£500 GBP (7일 이내)
(0 리뷰)
0.0
aurium

Hello, ABOUT THE PROBLEM The correct solution for your request not only rely on regex expertise, but also in the python's re operations. And that is pretty simple: [login to view URL]('"[^"]+"|[^,]+', data) The `findall` wi 더 보기

£400 GBP (2일 이내)
(0 리뷰)
0.0
kasun7153

i can do this within one day.I am engineering student,I am good with python [login to view URL] if u give me this job.i can finish it within hours.

£500 GBP (1일 이내)
(0 리뷰)
0.0
rutujaww

Hello, I can do this quickly. Please let me know if you would like a sample on a larger dataset. Thank you. Best regards, Rutuja W.

£250 GBP (3일 이내)
(0 리뷰)
0.0
truonglongdev

I am a computer science engineer. I think this is quite easy. My regular expression is: (["][a-zA-Z0-9\s:,.]+["]|(?!,)[a-zA-Z0-9\s:.]+) Entire source code: import re import pprint data = '378794,"Nov 15 2004 9:01:00: 더 보기

£250 GBP (7일 이내)
(1 리뷰)
0.0