Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #55910
| Path | csiph.com!eeepc.pasdenom.info!news.pasdenom.info!news.dougwise.org!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python@mrabarnett.plus.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'from:addr:python': 0.05; 'from:addr:mrabarnett.plus.com': 0.07; 'from:name:mrab': 0.07; 'message-id:@mrabarnett.plus.com': 0.07; 'received:84.92.122': 0.07; 'received:84.92.122.60': 0.07; 'received:mrabarnett.plus.com': 0.09; 'wrote:': 0.14; 'received:84.93.230.227': 0.16; 'received:outmx01.plus.net': 0.16; 'reply-to:addr:python-list': 0.16; 'feb': 0.16; 'thanks!': 0.16; 'skip:r 30': 0.18; 'tried': 0.22; 'received:84.92': 0.23; 'header :In-Reply-To:1': 0.23; "didn't": 0.25; 'work.': 0.26; 'received:84.93': 0.30; 'received:84.93.230': 0.30; 'received:84': 0.30; 'to:addr:python-list': 0.31; 'capture': 0.31; 'uses': 0.32; 'reply-to:addr:python.org': 0.34; 'header:User-Agent:1': 0.34; 'but': 0.36; 'subject:: ': 0.39; 'to:addr:python.org': 0.40; 'reply-to:no real name:2**0': 0.72; 'header:Reply-To:1': 0.72; 'scanner': 0.93 |
| X-IronPort-Anti-Spam-Filtered | true |
| X-IronPort-Anti-Spam-Result | AuEFADAJUE1UXebj/2dsb2JhbACXCY4cc7lFgn2CXQSSHA |
| Date | Mon, 07 Feb 2011 23:02:28 +0000 |
| From | MRAB <python@mrabarnett.plus.com> |
| User-Agent | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: splitting by double newline |
| References | <iipb0s$hj4$1@nntp.amis.hr> <85980d81-1c01-4f71-a9da-77fb906c5358@s11g2000yqh.googlegroups.com> <iipne9$or9$2@nntp.amis.hr> |
| In-Reply-To | <iipne9$or9$2@nntp.amis.hr> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| Reply-To | python-list@python.org |
| 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.8.1297119747.6276.python-list@python.org> (permalink) |
| Lines | 12 |
| NNTP-Posting-Host | 82.94.164.166 |
| X-Trace | 1297119749 news.xs4all.nl 41103 [::ffff:82.94.164.166]:56979 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:55910 |
Show key headers only | View raw
On 07/02/2011 21:15, Nikola Skoric wrote:
> Dana Mon, 7 Feb 2011 10:02:05 -0800 (PST),
> Ian<ian.g.kelly@gmail.com> kaze:
>> self.tables = re.split(r'(?:\r\n){2,}|\r{2,}|\n{2,}', bulk)
>
> Thanks!
>
> I tried without "?:", but it didn't work. Can you tell me why is it
> important that group is noncapturing?
>
The scanner uses capture groups to identify which part matched. If you
provide additional capture groups it has problems...
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: splitting by double newline Ian <ian.g.kelly@gmail.com> - 2011-02-07 10:02 -0800
Re: splitting by double newline Nikola Skoric <nick@fly.srk.fer.hr> - 2011-02-07 21:15 +0000
Re: splitting by double newline MRAB <python@mrabarnett.plus.com> - 2011-02-07 23:02 +0000
csiph-web