Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:
I think it's fine as-is. The real purpose of the example is show basic patterns in writing regexes. Pig-latin examples or searching for words ending in -ly make for nice beginner examples. I like the OP's modification because it teaches a general skill (the importance of \b for making sure you get whole words). We could add a link to the Natural Language Toolkit for people who are getting serious about searching for parts of speech. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41259> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com