note 14630 rejected and deleted from function.ereg-replace.php by andy
| From: | andy@php.net | Date: | Tue, 07 Aug 2001 12:53:14 +0000 |
| Subject: | note 14630 rejected and deleted from function.ereg-replace.php by andy | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-16430@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.