"Alan Gauld" <[EMAIL PROTECTED]> wrote > "Malcolm Greene" <[EMAIL PROTECTED]> wrote in message
Oops, sorry. I hit the send button by mistake while aiming for the File menu! >> Any suggestions for how to normalize and compress whitespace in a >> string? >> I know I can use regular expressions to accomplish the above, but >> thought that might be too heavy handed. regex is probably the most elegant way of doing this just because you can combine what would otherwise a lot of individual operations into a single complex operation which will probably be faster. Also the regex doesn't sound like it would be overly complex. Alan G _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor