note 14630 added to function.ereg-replace.php
| From: | admin at citycomp dot ru | Date: | Tue, 07 Aug 2001 10:10:41 +0000 |
| Subject: | note 14630 added to function.ereg-replace.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-16425@lists.php.net to get a copy of this message | ||
How to replace string1, which DOESN'T contain string2?
F. ex., I want to replace all hiperlinks in $html like "docs/main.php" with "http://mydomain.com/docs/main.php". But if
hiperlink starts with "http://" it is not need to replace it.
http://www.php.net/manual/en/function.ereg-replace.php