We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
\B
1 parent 7d505fe commit d5aafe7Copy full SHA for d5aafe7
Doc/library/re.rst
@@ -572,6 +572,12 @@ character ``'$'``.
572
Word boundaries are determined by the current locale
573
if the :py:const:`~re.LOCALE` flag is used.
574
575
+ .. note::
576
+
577
+ Note that ``\B`` does not match an empty string, which differs from
578
+ RE implementations in other programming languages such as Perl.
579
+ This behavior is kept for compatibility reasons.
580
581
.. index:: single: \d; in regular expressions
582
583
``\d``
0 commit comments