Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: CSV cleanup problem...

by tlm (Prior)
on Jun 14, 2005 at 01:51 UTC ( #466345=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    split /(?<=")\s*,\s*(?=")/, $string
    
  2. or download this
    0  '"title"'
    1  '"Some Name, "some wierd title""'
    2  '"555-555-5555"'
    
  3. or download this
    my @fields = map { s/^"(.*)"\z/$1/; $_ }
                     split /(?<=")\s*,\s*(?=")/, $string;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://466345]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2018-08-18 06:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:









    Results (185 votes). Check out past polls.

    Notices?