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: 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 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: <85980d81-1c01-4f71-a9da-77fb906c5358@s11g2000yqh.googlegroups.com> In-Reply-To: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On 07/02/2011 21:15, Nikola Skoric wrote: > Dana Mon, 7 Feb 2011 10:02:05 -0800 (PST), > Ian 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...