From: James Edward Gray II Date: 2005-10-29T01:57:48+09:00 Subject: Re: csv.rb a start on refactoring. On Oct 28, 2005, at 9:58 AM, Ara.T.Howard wrote: > On Fri, 28 Oct 2005, James Edward Gray II wrote: > > >> On Oct 28, 2005, at 8:53 AM, Ara.T.Howard wrote: >> >> >>> anyhow - thanks for doing this. fyi, i've used the following >>> approach many >>> times for loading huge csv files in an attempt to squeeze out >>> speed - it >>> works. the approach is simple: >>> >> >> I wondering if we're going about this all wrong. Mastering Regular >> Expression has a single regex that parses CSV, properly handling >> escapes. >> Have anyone tried porting that? >> > > i haven't looked at it - but isn't that impossible, by definition, > since > parsing them is context sensitive when quoting is considered? I'm just mentioning what I remember reading. Of course, it's quite possible that my memory is poor. > do you have a better reference for the re? or is that the one? I'm not at my geek bookshelf right now. I will post the code tonight... James Edward Gray II