Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Embedded unescaped quotes in quoted fields

by Wally Hartshorn (Hermit)
on Jun 15, 2004 at 13:56 UTC ( [id://366890]=note: print w/replies, xml ) Need Help??


in reply to Re: DBD::CSV handles embedded CR-LFs fine!
in thread Finding CR-LFs within quoted CSV fields

The data is like type #1, unfortunately. It would be something like this:

"Smith","John",12/31/1962,"Author of "How to Break Programs" and other books","Bugger"

I'm using a series regexes to change that to:

"Smith","John",12/31/1962,"Author of ""How to Break Programs"" and other books","Bugger"

It would be nice if the user just gave us a valid CSV file to begin with, but....

Thanks, and sorry for the confusion!

Wally Hartshorn

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2024-04-25 15:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found