string substitutions

Bob Roberts bobnotbob at byu.edu
Sat Feb 23 20:52:10 CET 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