Removing whitespace

pauljolly at my-deja.com pauljolly at my-deja.com
Mon Jul 31 05:29:13 EDT 2000


Dear All,

Firstly, apologies for all the questions! However, extensive searching
and reading of manuals has not helped me here. How does one remove
whitespace characters from a string (using the re module)? I have tried
using the re.compile('\s*') method, followed by the split() function
but no success. Any help much appreciated with example code is possible.

Regards,

Paul Jolly


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list