note 54830 deleted from reference.pcre.pattern.syntax by crell

From: Date: Fri, 01 Jul 2022 20:10:16 +0000
Subject: note 54830 deleted from reference.pcre.pattern.syntax by crell
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-218884@lists.php.net to get a copy of this message
Note Submitter: Ned Baldessin ---- Although \w and \W do include as "word characters" locale-specific characters (like "?" if you are using the "fr" locale), \b and \B do not work the same way. For example : "foo ?tait bar" => /\W(?tait)\W/ => This captures correctly "?tait". "foo ?tait bar" => /\b(?tait)\b/ => This fails to capture it. This is confusing, because the manual talks in both cases about "word characters", but fails to mention the difference in behaviour.

« previous php.notes (#218884) next »