String comparison question

Olivier Langlois olanglois at quazal.com
Sun Mar 19 18:32:10 EST 2006


Hi,

 

I would like to make a string comparison that would return true without
regards of the number of spaces and new lines chars between the words

 

like 'A   B\nC' = 'A\nB    C'

 

What would be the easiest way to do it in Python?

 

Thanks,

Olivier Langlois

http://www.quazal.com

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20060319/09abfbc8/attachment.html>


More information about the Python-list mailing list