note 63271 added to function.preg-replace
| From: | c_stewart0a at yahoo dot com | Date: | Fri, 17 Mar 2006 22:35:31 +0000 |
| Subject: | note 63271 added to function.preg-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-106003@lists.php.net to get a copy of this message | ||
In response to elaineseery at hotmail dot com
[quote]if you're new to this function, and getting an error like 'delimiter must not
alphanumeric backslash ...[/quote]
Note that if you use arrays for search and replace then you will want to quote your searching
expression with / or you will get this error.
However, if you use a single string to search and replace then you will not recieve this error if
you do not quote your regular expression in /
----
Server IP: 64.71.164.2
Probable Submitter: 68.167.171.97
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.preg-replace.php
Edit -- http://master.php.net/note/edit/63271
Del: integrated -- http://master.php.net/note/delete/63271/integrated
Del: useless -- http://master.php.net/note/delete/63271/useless
Del: bad code -- http://master.php.net/note/delete/63271/bad+code
Del: spam -- http://master.php.net/note/delete/63271/spam
Del: non-english -- http://master.php.net/note/delete/63271/non-english
Del: in docs -- http://master.php.net/note/delete/63271/in+docs
Del: other reasons-- http://master.php.net/note/delete/63271
Reject -- http://master.php.net/note/reject/63271
Search -- http://master.php.net/manage/user-notes.php