-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
Confusion in regular expression syntax example. #102259
New issue
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
Comments
Thank you Skip. I have seen this anomaly but never stopped to open an issue. I propose to replace 'a parenthesis' with 'a right bracket, as well as left bracket, braces, and parentheses'. What do you think? If OK, can you make a PR and ask me to review? Doc changes are usually backported to bugfix releases when applicable and easily done. Thank you for the note that both are true. They are almost never backported to security releases and then only by the release manager. (Prior releases are frozen ;-) Use a single |
Sure, I'll whip something up. Thanks for the Markdown suggestion. I seem to always choose incorrectly between "code" and "quote". |
Co-authored-by: Terry Jan Reedy <[email protected]>
…thonGH-102264) (cherry picked from commit bcadcde) Co-authored-by: Skip Montanaro <[email protected]> Co-authored-by: Terry Jan Reedy <[email protected]>
…thonGH-102264) (cherry picked from commit bcadcde) Co-authored-by: Skip Montanaro <[email protected]> Co-authored-by: Terry Jan Reedy <[email protected]>
(cherry picked from commit bcadcde) Co-authored-by: Skip Montanaro <[email protected]> Co-authored-by: Terry Jan Reedy <[email protected]>
(cherry picked from commit bcadcde) Co-authored-by: Skip Montanaro <[email protected]> Co-authored-by: Terry Jan Reedy <[email protected]>
In the 3.11 documentation, the regular expression syntax section reads, in part:
The discussion centers on matching a right square bracket, but the end phrase reads, "... will both match a parenthesis." I suspect the author meant something like "... will both match left or right braces, parentheses or square brackets."
The same wording exists in 2.7 and 3.5 through 3.12. I doubt it's worth backporting beyond whatever is still being actively bugfixed.
Linked PRs
The text was updated successfully, but these errors were encountered: