Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:
For this problem, I would reach for regular expressions. They are specifically designed for flexibility and customization. ---------- nosy: +rhettinger _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39418> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com