string.replace() can't replace newline characters???

Thomas Gagne tgagne at ix.netcom.com
Fri Aug 11 12:59:37 EDT 2000


I have a string with newline characters in it that I want to replace with
text.  My code goes

value = string.replace(qs[x][0], "\n", "'+char(10)+'")

The result is a new string with the text "'+char(10)+'" **AFTER** each newline
character.

Help?




More information about the Python-list mailing list