[Tutor] Python Challenge - Riddle 2

Alan Gauld alan.gauld at freenet.co.uk
Tue May 10 19:39:26 CEST 2005


> This matches '[A-Z]{3}[a-z]{1}[A-Z]{3}' 477 occurences...

Doesn't the {3} mean a minimum of 3?

I may be wrong, its not a feature I use much but I thought there was a
gotcha with the {} notation that meant you had to provide a
terminating
character too?

Alan G.
(Who has only just started on these riddles...)




More information about the Tutor mailing list