İptal Edildi

Simple regular expression PHP

I need a simple ereg_replace statement written. I hate writing regular expressions.

I have a script that uploads a CSV file. When it reads a line and comes across a column value that contains a comma, it gets messed up when I explode the string. Example, lets say that the first line in the CSV file is:

tony,10-27-70,webdesigner,"2,000","And I said, Hello",charlotte,

the value in column 4 and 5 contains a comma and escaped by double quotes.

I need a regex that will remove the commas and the double quotes so it looks like this:

tony,10-27-70,webdesigner,2000,And I said Hello,charlotte,

Now when I use explode(",",$string) It will work right.

Beceriler: PHP

Daha fazlasını görün: writing expressions, webdesigner work, use regular expressions, up string, regular expressions in c, regular expressions example, regular expressions c, regular expression no, regular expression in c, regular expression example, regular expression c, regular expression a, regular expression 0, regex is, regex in c, regex example, regex c, i hate writing, example regular expressions, c regular expressions, c regular expression example, regex &, it webdesigner, uploads, tony

İşveren Hakkında:
( 11 değerlendirme ) indian trail, United States

Proje NO: #50963

11 freelancers are bidding on average $32 for this job

TakeReal

Hi, I can write this regex for you. Please, note: I have 600+ completed projects via "[url removed, login to view]" type sites.

1 gün içinde 30$ USD
(1550 Değerlendirme)
7.9
bruzli2005

Within an hour and done.

in 0 gün içinde30$ USD
(125 Değerlendirme)
7.1
mxicoders

Thanks for taking the time to review our bid At MXicoders. We specialize in providing total e-commerce, e-business and branding solutions to small and medium size business worldwide. We are selective about the jobs Daha fazlası

in 2 gün içinde35$ USD
(39 Değerlendirme)
7.1
royind

I can do this. Thanks.

1 gün içinde 30$ USD
(42 Değerlendirme)
6.8
idsnetworking

I can help you with this right now.

in 0 gün içinde30$ USD
(39 Değerlendirme)
5.2
NubKnacker

Please see PMB.

in 0 gün içinde30$ USD
(13 Değerlendirme)
4.0
deltahex

i'm interesting.

in 0 gün içinde50$ USD
(5 Değerlendirme)
3.7
FrederikVds

I can do this immedatly, within 5 minutes, for 20 dollar or less.

in 0 gün içinde30$ USD
(8 Değerlendirme)
3.8
leonchen

Hi, Sir, I've done this for you. If you select me, you will get it immediately. Thanks for providing this simple project.

in 0 gün içinde30$ USD
(1 Değerlendirme)
2.2
RGB

Hi Plz Chk PMB

in 0 gün içinde30$ USD
(2 Değerlendirme)
1.6
prashantpawar

Please check PMB for the demo.

in 0 gün içinde30$ USD
(0 Değerlendirme)
0.0