[ python-Bugs-1771483 ] another 'nothing to repeat'

SourceForge.net noreply at sourceforge.net
Fri Aug 10 10:56:28 CEST 2007


Bugs item #1771483, was opened at 2007-08-10 08:56
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1771483&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Regular Expressions
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: viciousdog (viciousdog)
Assigned to: Gustavo Niemeyer (niemeyer)
Summary: another 'nothing to repeat'

Initial Comment:
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 ?.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1771483&group_id=5470


More information about the Python-bugs-list mailing list