[Python-ideas] Give regex operations more sugar

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Jun 14 02:33:14 EDT 2018


Steven D'Aprano wrote:
> - should targets match longest first or shortest first? or a flag
>   to choose which you want?
> 
> - what if you have multiple targets and you need to give some longer
>   ones priority, and some shorter ones?

I think the suggestion made earlier is reasonable: match
them in the order they're given. Then the user gets
complete control over the priorities.

-- 
Greg


More information about the Python-ideas mailing list