Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #20397

Re: re module: Nothing to repeat, but no sre_constants.error: nothing to repeat ?

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <jeanpierreda@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.016
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'subject:module': 0.04; 'expressions.': 0.09; 'am,': 0.12; 'compile.': 0.16; 'sajip': 0.16; 'subject: \n ': 0.16; 'vinay': 0.16; 'cc:addr:python-list': 0.16; 'wrote:': 0.18; 'subject:skip:s 10': 0.18; 'cc:no real name:2**0': 0.21; 'header:In-Reply-To:1': 0.22; 'feb': 0.22; 'subject: ?': 0.24; 'cc:2**0': 0.26; "i'm": 0.28; 'message- id:@mail.gmail.com': 0.29; 'cc:addr:python.org': 0.29; 'does': 0.32; 'tue,': 0.32; 'match': 0.34; 'character': 0.34; 'wondering': 0.34; 'regular': 0.35; 'received:209.85.160': 0.36; 'received:google.com': 0.37; 'received:209.85': 0.38; 'received:209.85.160.46': 0.39; 'received:mail- pw0-f46.google.com': 0.39; 'received:209': 0.39; 'subject:Nothing': 0.84; 'subject:nothing': 0.84; 'to:addr:yahoo.co.uk': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=lWmLUeSaE+5CdM8NtjWYCYV1tW3a7NEGaw5CoVGMKkQ=; b=hQLjQvtz6s9u7hjU3uhjx/wQXQbtnDaYe4FuBq3Es/C9NbY7FJtrnisHq5qtuJmRQR vFAnbp5PSI4UPfN9ovCi2e42DWzqGB2EYQKsJFyNyhryZoKkN1fkX+hX76Xrh/jKBjV6 ++a5CkmYP1wnzyG9lykMyv4juJlS+KXRZnWMU=
MIME-Version 1.0
In-Reply-To <0cc200e6-6e4c-47b7-8563-3abc3ac94f22@k10g2000yqk.googlegroups.com>
References <mailman.5792.1329194327.27778.python-list@python.org> <0cc200e6-6e4c-47b7-8563-3abc3ac94f22@k10g2000yqk.googlegroups.com>
From Devin Jeanpierre <jeanpierreda@gmail.com>
Date Tue, 14 Feb 2012 08:33:12 -0500
Subject Re: re module: Nothing to repeat, but no sre_constants.error: nothing to repeat ?
To Vinay Sajip <vinay_sajip@yahoo.co.uk>
Content-Type text/plain; charset=UTF-8
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.5798.1329226436.27778.python-list@python.org> (permalink)
Lines 10
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1329226436 news.xs4all.nl 6876 [2001:888:2000:d::a6]:34436
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:20397

Show key headers only | View raw


On Tue, Feb 14, 2012 at 8:20 AM, Vinay Sajip <vinay_sajip@yahoo.co.uk> wrote:
> $ is a meta character for regular expressions. Use '\$*', which does
> compile.

I mean for it to be a meta-character.

I'm wondering why it's OK for to repeat a zero-width match if it is a
zero-width assertion.

-- Devin

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

re module: Nothing to repeat, but no sre_constants.error: nothing to repeat ? Devin Jeanpierre <jeanpierreda@gmail.com> - 2012-02-13 23:38 -0500
  Re: re module: Nothing to repeat, but no sre_constants.error: nothing to repeat ? Vinay Sajip <vinay_sajip@yahoo.co.uk> - 2012-02-14 05:20 -0800
    Re: re module: Nothing to repeat, but no sre_constants.error: nothing to repeat ? Devin Jeanpierre <jeanpierreda@gmail.com> - 2012-02-14 08:33 -0500

csiph-web