madg...@gmail.com
unread,Apr 14, 2013, 9:29:52 PM4/14/13You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Hi Guys,
I have a CSV file exported from an LDAP query which I need to build an array from.
At the moment I have some fields containing commas surrounded by quotes.
"cn=JOHNSMITH,ou=SALES,o=COMPANY",JOHN,JOHN SMITH,,SMITH,,,"1 West Street, Westland",,,42,,,JOHN SMITH,,,,,,,,
What is the most elegant way to get an array with the items within the quotes intact.
as per below...
cn=JOHNSMITH,ou=SALES,o=COMPANY
JOHN
JOHN SMITH
:
SMITH
:
1 West Street, Westland
:
42
:
JOHNSMITH
:
:
I would prefer not to have to do it char by char as the export is rather large.
Thanks
G