[issue40043] RegExp Conditional Construct (?(id/name)yes-pattern|no-pattern) Problem

SilentGhost report at bugs.python.org
Sun Mar 22 18:40:38 EDT 2020


SilentGhost <ghost.adh at runbox.com> added the comment:

Leon, this most likely is not a bug, not because what's stated in documentation, but because you're most likely not testing what you think you do. Here is the test that you should be doing:

>>> re.match(r'(<)?(\w+@\w+(?:\.\w+)+)(?(1)>|$)', '<user at host.com')
>>>

No match. If there is a different output in your setup, please provide both the output and the details of your system and Python installation.

----------
nosy: +SilentGhost
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40043>
_______________________________________


More information about the Python-bugs-list mailing list