which re a|l|t|e|r|n|a|t|i|v|e matched?

Diez B. Roggisch deets_noospaam at web.de
Mon Oct 27 15:21:33 EST 2003


Hi,

> Don't say, "of course".  I would rather stick my hand in a vise than use
> reduce() so it wasn't obvious to me. ;-)  Thanks for the suggestion.  I

Why won't you use reduce? 

> suspect Tim's .lastindex solution will be simplest.

Sure, tim provided a better solution for getting the index - I didn't check
the lib-doc if there is such a function. But my reduce still comes handy
when building the actual pattern, doesn't it?

Regards,

Diez




More information about the Python-list mailing list