[Csv] multi-character delimiters, take two

Skip Montanaro skip at pobox.com
Sun Feb 9 17:47:05 CET 2003


    Dave> Mind you all of this code falls over once you decide to allow
    Dave> multiple characters in the quotechar as well.  What happens when
    Dave> delimiter = 'DD' and quotechar = 'DQ' (where D and Q are some
    Dave> arbitrary character)?  You start building a partial regex engine.

Would it work to simply use regular expressions to recognize delimiters and
quotes?  (I'll let you do the math. ;-)

Skip



More information about the Csv mailing list