splitting by double newline

Nikola Skoric nick at fly.srk.fer.hr
Mon Feb 7 22:15:54 CET 2011


Dana Mon, 7 Feb 2011 10:02:05 -0800 (PST), 
Ian <ian.g.kelly at 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?


-- 
"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 bedrooms of my dreams"



More information about the Python-list mailing list