split encloser

Alex Martelli aleax at aleax.it
Sun Apr 13 18:54:46 CEST 2003


Chris wrote:
   ...
> it's just that my brain freezes trying to understand regular
> expressions (beyond the basics). 

Then maybe you shouldn't be straining to use re's beyond the basics --
you can get a LOT done in Python without them, after all!

> I have the book you mention and maybe
> I can dust it off and give it a go!

Make sure you use Friedl's _second_ edition, btw.  And, of course,
it will exemplify re's, but not the specific ways they're used in
Python (perhaps a secondary issue, but when you mention such re
methods as finditer and sub, it may make a difference).


Alex





More information about the Python-list mailing list