[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Manual: Incorrect explanation of /\B/
From: |
Wolfgang Laun |
Subject: |
Manual: Incorrect explanation of /\B/ |
Date: |
Wed, 7 Sep 2022 17:40:32 +0200 |
Currently we have this text (in 3.7):
Matches the empty string that occurs between two word-constituent
characters. For example, /\Brat\B/ matches ‘crate’, but it does not
match ‘dirty
rat’. ‘\B’ is essentially the opposite of ‘\y’.
It should read:
Matches when not at a word boundary, i.e., within a word or whenever both
of the adjoining characters are not a word character. For example,
/\Brat\B/ matches ‘crate’, but it does not match ‘dirty rat’, or /\B/ matches
4 places in ‘///’. ‘\B’ is essentially the opposite of ‘\y’.
Regards
Wolfgang Laun
- Manual: Incorrect explanation of /\B/,
Wolfgang Laun <=