Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #30781
| Date | 2012-10-05 15:22 +1000 |
|---|---|
| From | Cameron Simpson <cs@zip.com.au> |
| Subject | Re: + in regular expression |
| References | <CALwzidnH2T5vsYT=nMvBmO4V6fmK+aMfHpxQDWrwArJ6aKtVew@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1838.1349414969.27098.python-list@python.org> (permalink) |
On 03Oct2012 21:17, Ian Kelly <ian.g.kelly@gmail.com> wrote:
| 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})+"
Yeah, it is probably a precedence issue in the grammar.
"(\s{6})+" is also accepted.
--
Cameron Simpson <cs@zip.com.au>
Disclaimer: ERIM wanted to share my opinions, but I wouldn't let them.
- David Wiseman <dwiseman@erim.org>
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Re: + in regular expression Cameron Simpson <cs@zip.com.au> - 2012-10-05 15:22 +1000
Re: + in regular expression Duncan Booth <duncan.booth@invalid.invalid> - 2012-10-05 09:23 +0000
Re: Re: + in regular expression Evan Driscoll <driscoll@cs.wisc.edu> - 2012-10-05 10:27 -0500
Re: + in regular expression Evan Driscoll <driscoll@cs.wisc.edu> - 2012-10-05 10:31 -0500
Re: + in regular expression MRAB <python@mrabarnett.plus.com> - 2012-10-05 17:07 +0100
csiph-web