Removing the continous newline characters from the pythong string

Basilisk96 basilisk96 at gmail.com
Tue May 1 18:09:00 EDT 2007


What was I thinking? split() will only work if you have no other
whitespace characters in the string.  A regex like "[\n\r]+" is indeed
much more appropriate and robust.

Cheers
-Basilisk96




More information about the Python-list mailing list