How to use python regular expression to substitute string value

Allerdyce.John at gmail.com Allerdyce.John at gmail.com
Sun Feb 26 14:34:26 EST 2006


okay, but I have a simpler question, how can I split using only "\n"?

I try this:
            strings = node.data.split("\n");
             print node.data

             for str in strings:
                 print str

where node.data has multiple lines, but in the for loop, I don't see
str gets print out.




More information about the Python-list mailing list