[docs] I am Sai Akshay Erupaka I found an mistake in the documentation in the regular expressions part

Julien Palard julien at palard.fr
Tue Aug 20 16:10:59 EDT 2019


Hi Sai,

> It says that the RE <.*?> matches only <a> but it also matches <c>

That's right (yet if you use re.match or re.search it will stop at matching only <a> so that's not wrong either).

"Fixing" it would make the sentence longer, I think in the current state it explain the point clearly, making it longer won't easily make it clearer.

If you still fill it can be enhanced, feel free to open a pull request on https://github.com/python/cpython/

Bests,
-- 
Julien Palard
https://mdk.fr




More information about the docs mailing list