Hello,
I am trying to "parse" strings like this into an array (everything between a comma shall be in a seperate field):
('Myte title, and someting','ST, H.; GRZ G.','0-000-1222-0',1984,'Springer','10-Jan-1999','',10,NULL,'','AP',NULL,'',NULL,'','')
Now there are a few problems:
- sometimes there is a comma between '' that should be ignored: e.g. 'hello, this'
- there are emptry '' that shall not be ignored (they should have an empty field in an array.
e.g. the string above should be saved into an array as this:
field 1: Myte title, and someting
field 2: ST, H.; GRZ G.
field 3: 0-000-1222-0
field 4: 1984
field 5: Springer
field 6: 10-Jan-1999
field 7:
field 8: 10
field 9: NULL
field 10:
field 11: AP
field 12: NULL
field 13:
field 14: NULL
field 15:
field 16:
I have tried to manage this with the split function but I don't get it working.
any help would be highly appreciated.
thanks