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


Groups > comp.lang.python > #30706

Re: + in regular expression

References <CA+YdQ_4qK+UGjxpuzjsg3rVQfcQVLPgPB1SqP6Y+REa=OB8ZYQ@mail.gmail.com>
From Ian Kelly <ian.g.kelly@gmail.com>
Date 2012-10-03 21:17 -0600
Subject Re: + in regular expression
Newsgroups comp.lang.python
Message-ID <mailman.1782.1349320672.27098.python-list@python.org> (permalink)

Show all headers | 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