note 42791 added to function.preg-replace
| From: | Wendel at rn2 dot php dot net | Date: | Sat, 29 May 2004 15:06:22 +0000 |
| Subject: | note 42791 added to function.preg-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-70276@lists.php.net to get a copy of this message | ||
The regex parameter must be enclosed between /'s ( /regex/ ), as someone said in another
note... but the truth is that you can use any regex delimiter like perl... example:
"@regex@"
"~regex~"
"{regex}"
This is useful if your regex contains many '/'s (that are very ugly when escaping)
----
Manual Page -- http://www.php.net/manual/en/function.preg-replace.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+42791
Delete -- http://master.php.net/manage/user-notes.php?action=delete+42791&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+42791&report=yes
Search -- http://master.php.net/manage/user-notes.php