I need some help with a regexp please
Fredrik Lundh
fredrik at pythonware.com
Tue Sep 26 06:12:06 EDT 2006
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>
More information about the Python-list
mailing list