geoff / knauth.org (Geoffrey S. Knauth) writes:

> Xavier <NOSPAM / keepyourspam.com> wrote:
> > Thought you'd like to know about this article
> > This links to the printable version, much easier to read.
> > http://linux.oreillynet.com/lpt/a/4159
> 
> Nice script for handling CSVs.  But it doesn't handle commas embedded in
> double quotes (yet).

If anyone wants one, I've got a DelimParser class that handles different
delimiters and quote marks as well as delimiters, escaped characters, and
doubled quotes that appear in the data.

It doesn't use regexps. It's a simple state machine that walks through each
character in the input.

Ask and thou shall receive.

Jim
-- 
Jim Menard, jimm / io.com, http://www.io.com/~jimm/
"$665.95: The Retail Price of the Beast" -- Unknown