[docs] [issue29291] Misleading text in the documentation of re library for non-greedy match

Raymond Hettinger report at bugs.python.org
Tue Jan 17 04:11:37 EST 2017


Raymond Hettinger added the comment:

I concur with Serhiy and Xiang that the docs are correct as-is.  Also IMO, the proposed rewording will cause more confusion than it cures.  Since this issue hasn't previously come up in the rather long life span of the re module, it suggests that most folks are getting the understanding they need from the existing docs.

I think it is the job for regex tutorials (rather than the main docs) to show when to use "<.*?><span>" versus "<[^>]*><span>".

----------
nosy: +rhettinger
resolution:  -> not a bug
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29291>
_______________________________________


More information about the docs mailing list