Error in PHP documentation

  105802
May 30, 2019 10:11 addw@phcomp.co.uk (Alain D D Williams)
I have noticed an error, please can someone with update rights fix it.

https://www.php.net/manual/en/regexp.reference.character-classes.php

7th paragraph contains:

However, if the "]" is escaped with a backslash it is interpreted as the end of
range, so [W-\]46] is interpreted as a single class containing a range followed
by two separate characters.

The word NOT is missing, it should read:

However, if the "]" is escaped with a backslash it is NOT interpreted as the end of
range, so [W-\]46] is interpreted as a single class containing a range followed
by two separate characters.

Regards

-- 
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256  https://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: https://www.phcomp.co.uk/contact.php
#include 
  105803
May 30, 2019 11:19 narf@devilix.net (Andrey Andreev)
Hi,

On Thu, May 30, 2019 at 1:11 PM Alain D D Williams <addw@phcomp.co.uk> wrote:
> > I have noticed an error, please can someone with update rights fix it. > > https://www.php.net/manual/en/regexp.reference.character-classes.php > > 7th paragraph contains: > > However, if the "]" is escaped with a backslash it is interpreted as the end of > range, so [W-\]46] is interpreted as a single class containing a range followed > by two separate characters. > > The word NOT is missing, it should read: > > However, if the "]" is escaped with a backslash it is NOT interpreted as the end of > range, so [W-\]46] is interpreted as a single class containing a range followed > by two separate characters. >
No, there's no error and nothing missing. You're misinterpreting what it says. "Range" means the "W-\]" part. As in a range of characters between W and ]. Cheers, Andrey.
  105804
May 30, 2019 11:23 george.banyard@gmail.com ("G. P. B.")
Moreover please use the bug tracker to raise such errors instead of mailing
the internal list.

Best regards

George P. Banyard