note 54830 added to reference.pcre.pattern.syntax

From: Date: Sat, 16 Jul 2005 11:14:25 +0000
Subject: note 54830 added to reference.pcre.pattern.syntax
Groups: php.notes 
Request: Send a blank email to php-notes+get-92057@lists.php.net to get a copy of this message
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. ---- Manual Page -- http://www.php.net/manual/en/reference.pcre.pattern.syntax.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+54830 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54830&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54830&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54830&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54830&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54830&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54830&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+54830&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#92057) next »