The Regex Story

Tim Chase python.list at tim.thechases.com
Fri Apr 9 10:54:03 EDT 2010


On 04/09/2010 06:18 AM, Stefan Behnel wrote:
> Tim Chase, 08.04.2010 16:23:
>> Lie Ryan wrote:
>>> OP: Got problem with string
>>> +- A: Suggested a regex-based solution
>>> +- B: Quoted "Some people ... regex ... two problems."
>>>
>>> or
>>>
>>> OP: Writes some regex, found problem
>>> +- A: Quoted "Some people ... regex ... two problems."
>>> +- B: Supplied regex-based solution, clean one
>>> +- A: Suggested PyParsing (or similar)
>>
>> There are some problem-classes for which regexps are the *right*
>> solution, and I don't see as much of your example dialog in those cases.
>
> Obviously. People rarely complain about problems that are easy to solve
> with the solution at hand.

Well, you still see the "Got a problem with a string" and the 
"having a problem with this regex" questions, but you don't see 
the remainder of the "now you have two problems" dialog. 
Granted, some folks give that as a knee-jerk reaction so we just 
learn to ignore their input because sometimes a regexp is exactly 
the right solution ;-)

-tkc





More information about the Python-list mailing list