yubikey

Greedy versus Non-Greedy matching in Python re

Please help me to discover whether this is a bug in Python (2.6.5), in my competence at writing regexes, or in my understanding of pattern matching. (I accept that a possible answer is "Upgrade your Python".) I'm trying to parse a Yubikey token, allowing for the optional extras. When I use this regex to match a token without any opti...