String pattern matching

Kent Johnson kent at kentsjohnson.com
Wed Apr 5 08:21:13 EDT 2006


jimlewis at emachineshop.com wrote:
> Thanks to all for the various good approaches. Kent's plain RE approach
> seems the most straightforward - did not know that RE can handle this
> situation - good to know!

Thanks to Eddie Corns also who showed how to express the problem as a 
parsing problem.

I am also trying a pyparsing solution but I don't see a way to repeat a 
previous element in pyparsing. Paul McGuire, are you listening?

Kent



More information about the Python-list mailing list