8000 [3.13] gh-124130: Notes on empty string corner case of category `\B` (GH-124133) by miss-islington · Pull Request #124328 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.13] gh-124130: Notes on empty string corner case of category \B (GH-124133) #124328

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

Merged
merged 1 commit into from
Sep 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
D600
Diff view
6 changes: 6 additions & 0 deletions Doc/library/re.rst
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,12 @@ character ``'$'``.
Word boundaries are determined by the current locale
if the :py:const:`~re.LOCALE` flag is used.

.. note::

Note that ``\B`` does not match an empty string, which differs from
RE implementations in other programming languages such as Perl.
This behavior is kept for compatibility reasons.

.. index:: single: \d; in regular expressions

``\d``
Expand Down
Loading
0