Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Recommendations for parsing invalid CSV

by mscharrer (Hermit)
on Apr 21, 2008 at 14:54 UTC ( [id://681931]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    user@machine$ perl -pe 's/(?<=.)(?<!,)"(?!,|$)/\\"/g' 
    "call from "friend"","call from "friend"","call from "friend""
    "call from \"friend\"","call from \"friend\"","call from \"friend\""
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://681931]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-03-29 10:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found