Peter Hansen <peter at engcorp.com> writes: > produce a longer overall match. In other words, the "|" operator is never > greedy. O.k. Thanks for pointing this out. Maybe I should have formulated my question differently: Is there a trick (be it dirty or not) to make "|" greedy in python? Jörg