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


Groups > comp.lang.python > #30706

Re: + in regular expression

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!news2.arglkargh.de!news.albasani.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <ian.g.kelly@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.066
X-Spam-Evidence '*H*': 0.87; '*S*': 0.00; 'oct': 0.16; 'subject:expression': 0.16; 'subject:regular': 0.16; 'wed,': 0.16; 'wrote:': 0.17; 'header:In-Reply-To:1': 0.25; 'message- id:@mail.gmail.com': 0.27; 'regular': 0.27; 'group:': 0.29; 'received:209.85.215.46': 0.30; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'pm,': 0.35; 'received:209.85': 0.35; 'why': 0.37; 'received:209': 0.37; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'to:name:python': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=1YIv62oQtLCLTXJOLCKoyKHE/Iq+Cau4pcAdYbEpeuA=; b=VtZrYhdTfsvMSsw6UynNm8aTM51cleA2kF73gxWGEKmImgRDwBWRuaPDNOK35016S2 fygccUepvh+EVkCf8KdJJV40DDbIc2tnaeaqhgWYUG/vg1bVisH6uufQE2xXN3f9rkND +nRDyoBmDhnzN1KYbk9yMKxvD5ff9g58nSzhLh44PeFAktir7VsFXjHknq5GYqcGqwOo ingwoMGOUo/3yoC8uG7WALLvmV7EjDO+Fk9QU8xRgMtXWFnjPsDOJRtDHPLlfvY1Ak+P E3+LXcvM0pCteN/UBFuRAxzqQfVZLO5hzYfTuuGTVN++ZZVtfpYhds54CzIcz7RJEG4w 9VWw==
MIME-Version 1.0
In-Reply-To <CA+YdQ_4qK+UGjxpuzjsg3rVQfcQVLPgPB1SqP6Y+REa=OB8ZYQ@mail.gmail.com>
References <CA+YdQ_4qK+UGjxpuzjsg3rVQfcQVLPgPB1SqP6Y+REa=OB8ZYQ@mail.gmail.com>
From Ian Kelly <ian.g.kelly@gmail.com>
Date Wed, 3 Oct 2012 21:17:19 -0600
Subject Re: + in regular expression
To Python <python-list@python.org>
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
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.1782.1349320672.27098.python-list@python.org> (permalink)
Lines 5
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1349320672 news.xs4all.nl 6945 [2001:888:2000:d::a6]:58626
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:30706

Show key headers only | View raw


On Wed, Oct 3, 2012 at 9:01 PM, contro opinion <contropinion@gmail.com> wrote:
> why the  "\s{6}+"  is not a regular pattern?


Use a group: "(?:\s{6})+"

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


Thread

Re: + in regular expression Ian Kelly <ian.g.kelly@gmail.com> - 2012-10-03 21:17 -0600

csiph-web