string substitutions

Bob Roberts bobnotbob at byu.edu
Sat Feb 23 14:52:10 EST 2002


What would be a good way to replace every one or more spaces (" ") in
a string with just one space?  Or replace any number of newlines with
just one?



More information about the Python-list mailing list