note 61936 added to function.preg-replace

From: Date: Wed, 15 Feb 2006 14:44:45 +0000
Subject: note 61936 added to function.preg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-103773@lists.php.net to get a copy of this message
if you're new to this function, and getting an error like 'delimiter must not alphanumeric backslash ... note that whatever is in $pattern (and only $pattern, not $string, or $replacement) must be enclosed by '/ /' (note the forward slashes) e.g. $pattern = '/and/'; $replacement = 'sandy'; $string = 'me and mine'; generates 'me sandy mine' seems to be obvious to everyone else, but took me a while to figure out!! ---- Server IP: 85.116.0.130 Probable Submitter: 217.23.234.66 ---- Manual Page -- http://www.php.net/manual/en/function.preg-replace.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+61936 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61936&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61936&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61936&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61936&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61936&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61936&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61936&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+61936&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#103773) next »