Doc #78564 [Opn->Nab]: Possibly Incorrect Hex Notation

From: Date: Wed, 18 Sep 2019 23:01:34 +0000
Subject: Doc #78564 [Opn->Nab]: Possibly Incorrect Hex Notation
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-16952@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78564&edit=1 ID: 78564 Updated by: requinix@php.net Reported by: ingmireokc at aol dot com Summary: Possibly Incorrect Hex Notation -Status: Open +Status: Not a bug Type: Documentation Problem Package: *Regular Expressions Operating System: Win 10 PHP Version: Irrelevant Block user comment: N Private report: N New Comment: 7th bit, yes. It's bit 6 when counting from 0, which is (at least as far as I've seen) how they're normally counted. You know, the same way the 7th element in an array is index 6. Previous Comments: ------------------------------------------------------------------------ [2019-09-18 22:53:50] ingmireokc at aol dot com Description: ------------ --- From manual page: https://php.net/regexp.reference.escape --- From the manual: "The precise effect of "\cx" is as follows: if "x" is a lower case letter, it is converted to upper case. Then bit 6 of the character (hex 40) is inverted. Thus "\cz" becomes hex 1A, but "\c{" becomes hex 3B, while "\c;" becomes hex 7B." Doesn't hex(40) refer to the 7th bit of a binary string? ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=78564&edit=1

« previous php.doc.bugs (#16952) next »