Defining re pattern for matching list of numbers

Steven D'Aprano steve at
Sat Nov 7 16:14:10 CET 2009

On Fri, 06 Nov 2009 10:16:31 -0800, Chris Rebert wrote:

> Your format seems so simple I have to ask why you're using regexes in
> the first place.

Raymond Hettinger has described some computing techniques as "code 
prions" -- programming advice or techniques which are sometimes useful 
but often actively harmful.

As useful as regexes are, I think they qualify as code prions too: people 
insist on using them in production code, even when a simple string method 
or function would do the job far more efficiently and readably.


More information about the Python-list mailing list