This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: another 'nothing to repeat'
Type: Stage:
Components: Regular Expressions Versions: Python 2.5
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: niemeyer Nosy List: niemeyer, viciousdog
Priority: normal Keywords:

Created on 2007-08-10 08:56 by viciousdog, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (1)
msg32619 - (view) Author: viciousdog (viciousdog) Date: 2007-08-10 08:56
Hi,

rxSlice = re.compile('\[([^:\]]*):([^:\[]?){1}(:[^:\[]+)?\]')

compiles, but

rxSlice = re.compile('\[([^:\]]*):([^:\[]*){1}(:[^:\[]+)?\]')

produces: >>> error: nothing to repeat
(Python 2.5.1 in idle on Windows XPpro)

Perhaps that 'nothing to repeat' is intended for {x} (i wouldn't like that at all), but then it must not differenciate between * and ?.
History
Date User Action Args
2022-04-11 14:56:25adminsetgithub: 45296
2007-08-10 08:56:28viciousdogcreate