Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.028 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'subject:module': 0.04; 'exception,': 0.07; 'pythonistas,': 0.09; 'compile.': 0.16; 'subject: \n ': 0.16; 'subject:skip:s 10': 0.18; 'here?': 0.23; 'hey': 0.24; 'subject: ?': 0.24; 'message-id:@mail.gmail.com': 0.29; 'equivalent.': 0.30; 'received:209.85.210.46': 0.30; 'received:mail-pz0-f46.google.com': 0.30; 'does': 0.32; 'to:addr :python-list': 0.35; 'skip:" 20': 0.35; 'regular': 0.35; 'received:google.com': 0.37; 'received:209.85': 0.38; 'fail': 0.39; 'received:209': 0.39; 'to:addr:python.org': 0.40; 'subject:Nothing': 0.84; 'subject:nothing': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; bh=snBv4J1iFmhtRWDedESZqu5hvTtFADVMiX8qbx6WWMo=; b=hl3pKkb0mSwizBt7cMXoT5P9uwLdB0xSnxOvsJvJf59LJkE0YjbiNfupm+DpvGYNd4 P771hH/gQK7+6mrkqCJq1YOmKJRXRe3xah7UX8QMuaJ/PIk2yjx9dCdBxv85U75NEZAj Yor6VD1QSkhRsuQleiYMiAL/zcYfA1P051MSc= MIME-Version: 1.0 From: Devin Jeanpierre Date: Mon, 13 Feb 2012 23:38:03 -0500 Subject: re module: Nothing to repeat, but no sre_constants.error: nothing to repeat ? To: python-list@python.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1329194327 news.xs4all.nl 6842 [2001:888:2000:d::a6]:56804 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:20388 Hey Pythonistas, Consider the regular expression "$*". Compilation fails with the exception, "sre_constants.error: nothing to repeat". Consider the regular expression "(?=$)*". As far as I know it is equivalent. It does not fail to compile. Why the inconsistency? What's going on here? -- Devin