[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-list
Subject:    Re: I need some help with a regexp please
From:       Fredrik Lundh <fredrik () pythonware ! com>
Date:       2006-09-26 10:12:06
Message-ID: efaudm$19k$1 () sea ! gmane ! org
[Download RAW message or body]

Frederic Rentsch wrote:

> If I may add another thought along the same line: regular expressions 
> seem to tend towards an art form, or an intellectual game. Many 
> discussions revolving around regular expressions convey the impression 
> that the challenge being pursued is finding a magic formula much more 
> than solving a problem. In addition there seems to exist some code of 
> honor which dictates that the magic formula must consist of one single 
> expression that does it all.

hear! hear!

for dense guys like myself, regular expressions work best if you use 
them as simple tokenizers, and they suck pretty badly if you're trying 
to use them as parsers.

and using a few RE:s per problem (or none at all) is a perfectly good 
way to get things done.

</F>

-- 
http://mail.python.org/mailman/listinfo/python-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic