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 capt
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?
--
"Now the storm has passed over me
I'm left to drift on a dea
Dana Mon, 07 Feb 2011 19:20:38 +0100,
Peter Otten <__pete...@web.de> kaze:
> with open(filename, "U") as f:
Oh, fabulous. Thanks!
--
"Now the storm has passed over me
I'm left to drift on a dead calm sea
And watch her forever through the cracks in the beams
Nailed across the doorways of the bed
Nikola Skoric wrote:
> Hello everybody,
>
> I'd like to split a file by double newlines, but portably. Now,
> splitting by one or more newlines is relatively easy:
>
> self.tables = re.split("[\r\n]+", bulk)
>
> But, how can I split on double newlines? I tried several approaches,
> but none wor
On Feb 7, 10:43 am, Nikola Skoric wrote:
> Hello everybody,
>
> I'd like to split a file by double newlines, but portably. Now,
> splitting by one or more newlines is relatively easy:
>
> self.tables = re.split("[\r\n]+", bulk)
>
> But, how can I split on double newlines? I tried several approache