Mark Tolonen <metolone+gmane <at> gmail.com> writes:
> re.compile(r'^_{0,3}[A-Z](?:[A-Z0-9]|-(?!-))*[A-Z0-9]$') # if rule 4 is an
> additional letter or digit
> re.compile(r'^_{0,3}[A-Z](?:[A-Z0-9]|-(?!-))*(?<!-)$') # if
> single-letter strings are allowed
> Mark, single-letter strings are allowed and your regular expression works as expected. Thank you! _______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
