split encloser
Chris
aussie2010 at yahoo.com
Sun Apr 13 06:08:43 EDT 2003
"Tiller, Jason" <jtiller at sjm.com> wrote in message news:<mailman.1050107298.22320.python-list at python.org>...
> Hi, "Aussie", :)
>
> Now, to be totally honest, I kicked myself after Robin pointed out that you
> can get a CSV add-on module for Python. DOH! ::sigh:: Of course something
> like this is available - this is hardly the first-ever application of CSV
> (or TSV or whatever)...
>
> I apologize if the commented regex wasn't detailed enough to completely
> explain its function. If you have any questions, don't hesitate to ask. I
> can tell that the base regex I described in my previous message doesn't meet
> all the possible situations that a more sophisticated CSV module might.
>
> If you're just interested in understanding regex'es for potential
> application in your own scripts, the regex chapter in "Programming Perl" is
> /very/ good, IMHO. There's always Jeffrey Freidl's "Mastering Regular
> Expressions" - all of the solid concepts are there, regardless of language.
> I apologize that I can't really offer insight into Python-based regex
> processing - I just haven't studied it well, and the Programming Python
> (1.3) book that I have devotes only five or so pages to the entire topic
> ("Programming Perl"'s regex chapter is 70 pages, and "Mastering..." is 308
> pages). I would hope that the more modern "Programming Python" does a
> better job...
>
> However, for solving your particular problem, I encourage you to take a look
> at the CSV module that Robin mentioned in his post.
>
> Good luck!
>
> ---Jason
>
>
Jason,
Sorry not to be clear. I didn't have a problem with your explanation,
it's just that my brain freezes trying to understand regular
expressions (beyond the basics). I have the book you mention and maybe
I can dust it off and give it a go!
More information about the Python-list
mailing list