Split function
Hi,
I am having an issue with the split function.
I am using it on a CVS data dump.. but when my datadumb has a blank element (its recorded ,,), split messes up and returns a , instead of a null..
any idea on how to make split() work? My first thought was to just regEx it.. but I think a regEx would have the same problem as split...
[359 byte] By [
TunaBooa] at [2007-11-27 9:22:44]

> Ah think I see the real problem.. some of the CSV data has commas in the
> datafield.
Commas are OK provided you put quotes around the data value. Like this:
?nbsp;?nbsp; foo, "$1,000", over priced
They will mess up the parsing however - as you've found. You might want to check out http://ostermiller.org/utils/CSV.html where there are some utilities for reading and writing data in this format.