note 48967 added to function.preg-match
| From: | hfuecks at phppatterns dot com | Date: | Thu, 13 Jan 2005 13:11:16 +0000 |
| Subject: | note 48967 added to function.preg-match | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-83183@lists.php.net to get a copy of this message | ||
Note that the PREG_OFFSET_CAPTURE flag, as far as I've tested, returns the offset in bytes not
characters, which may not be what you're expecting if you're using the /u pattern modifier
to make the regex UTF-8 aware (i.e. multibyte characters will result in a greater offset than you
expect)
----
Manual Page -- http://www.php.net/manual/en/function.preg-match.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+48967
Delete -- http://master.php.net/manage/user-notes.php?action=delete+48967&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48967&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48967&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48967&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48967&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48967&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+48967&report=yes
Search -- http://master.php.net/manage/user-notes.php