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


Groups > comp.lang.python > #55910

Re: splitting by double newline

Date 2011-02-07 23:02 +0000
From MRAB <python@mrabarnett.plus.com>
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>
Newsgroups comp.lang.python
Message-ID <mailman.8.1297119747.6276.python-list@python.org> (permalink)

Show all headers | 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 | NextPrevious in thread | Find similar | Unroll thread


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