[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Manual: Incorrect explanation of /\B/
From: |
arnold |
Subject: |
Re: Manual: Incorrect explanation of /\B/ |
Date: |
Wed, 14 Sep 2022 13:49:34 -0600 |
User-agent: |
Heirloom mailx 12.5 7/5/10 |
Hi.
This text has been unchanged since at least 1997. I think it's OK
as is.
Sorry,
Arnold
Wolfgang Laun <wolfgang.laun@gmail.com> wrote:
> 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