We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Original report by Vilius Poška (Bitbucket: poskadesign, GitHub: poskadesign).
Hey,
I encounter some weird behaviour when running this code:
regex.match(r""" (?(DEFINE) (?<w>\w+) ) (?&w) """, 'hey', regex.X | regex.V1)
The pattern matches but after calling groupdict() the match object returns {'w': None}. Is this the correct behaviour?
groupdict()
{'w': None}
P.S. using Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit (AMD64)] and regex 2016.6.23
The text was updated successfully, but these errors were encountered:
Original comment by Matthew Barnett (Bitbucket: mrabarnett, GitHub: mrabarnett).
It's more like a function definition than a capture group, so I'm going to leave it as-is.
Sorry, something went wrong.
Issue #252 was marked as a duplicate of this issue.
No branches or pull requests
Original report by Vilius Poška (Bitbucket: poskadesign, GitHub: poskadesign).
Hey,
I encounter some weird behaviour when running this code:
The pattern matches but after calling
groupdict()
the match object returns{'w': None}
. Is this the correct behaviour?P.S. using Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit (AMD64)] and regex 2016.6.23
The text was updated successfully, but these errors were encountered: