note 51751 added to function.preg-replace
| From: | buana at user dot net | Date: | Sat, 09 Apr 2005 19:25:39 +0000 |
| Subject: | note 51751 added to function.preg-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-87767@lists.php.net to get a copy of this message | ||
Dear All,
Need help..., please
I have a string:
$string = 'The* -quick* +brown* fox* "jumped* over* the" lazy* +dog*';
I want to remove all asterix (*) ONLY from words between quotation mark... and the result like:
$result = 'The* -quick* +brown* fox* "jumped over the" lazy* +dog*';
Thank for help
Buana
----
Manual Page -- http://www.php.net/manual/en/function.preg-replace.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+51751
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51751&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51751&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51751&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51751&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51751&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+51751&report=yes
Search -- http://master.php.net/manage/user-notes.php