Author calvin
Recipients
Date 2005-02-03.17:06:15
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=9205

Oops, it should have been:
>>> re.compile(r"(\ba*){4}")
And now the error is consistent (now tested in Python 2.4
instead of 2.3):
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.4/sre.py", line 180, in compile
    return _compile(pattern, flags)
  File "/usr/lib/python2.4/sre.py", line 227, in _compile
    raise error, v # invalid expression
sre_constants.error: nothing to repeat

So it seems that {m} operator does not like potentially
empty matches.
History
Date User Action Args
2007-08-23 14:29:17adminlinkissue1113484 messages
2007-08-23 14:29:17admincreate