beSTEfar a écrit : (snip) > When parsing strings, use Regular Expressions.
And now you have _two_ problems <g>For some simple parsing problems, Python's string methods are powerful enough to make REs overkill. And for any complex enough parsing (any recursive construct for example - think XML, HTML, any programming language etc), REs are just NOT enough by themselves - you need a full blown parser.
-- http://mail.python.org/mailman/listinfo/python-list