-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-133306: Support \z as a synonym for \Z in regular expressions #133314
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
Changes from 1 commit
53aa233
3964364
cd99209
d9b88b9
4dfd574
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,7 +49,8 @@ | |
r"\S": (IN, [(CATEGORY, CATEGORY_NOT_SPACE)]), | ||
r"\w": (IN, [(CATEGORY, CATEGORY_WORD)]), | ||
r"\W": (IN, [(CATEGORY, CATEGORY_NOT_WORD)]), | ||
r"\Z": (AT, AT_END_STRING), # end of string | ||
r"\z": (AT, AT_END_STRING), # end of string | ||
r"\Z": (AT, AT_END_STRING), # end of string (deprecated) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we use "deprecated" language here if we're not deprecating There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What words do you suggest? "legacy"? "obsolete"? Due to its subtle difference from other common implementations, it is very likely that |
||
} | ||
|
||
FLAGS = { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Support ``\z`` as a synonym for ``\Z`` in :mod:`regular expressions <re>`. |
Uh oh!
There was an error while loading. Please reload this page.