splitting by double newline
nick at fly.srk.fer.hr
Mon Feb 7 18:43:56 CET 2011
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 worked...
"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