note 20919 added to function.preg-replace
| From: | martinnitram at excite dot com | Date: | Mon, 22 Apr 2002 01:58:58 +0000 |
| Subject: | note 20919 added to function.preg-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-29665@lists.php.net to get a copy of this message | ||
from 'jbe@cpu.ath.cx' note:
$text = "Reading the documentation is allways recommanded, and the
PHP manual is worth a read";
If i just want to replace 'read' at $text but not "'read'ing", how can
i done that? From other article, i saw using preg_replace("/\b(read)\b/i", ...), which
'\b' mean as 'word boundary', is it ture?
Thx a lot
--
http://www.php.net/manual/en/function.preg-replace.php
http://master.php.net/manage/user-notes.php?action=edit+20919
http://master.php.net/manage/user-notes.php?action=delete+20919
http://master.php.net/manage/user-notes.php?action=reject+20919