note 47190 added to function.preg-replace
| From: | jack at jcxp dot net | Date: | Fri, 05 Nov 2004 16:51:17 +0000 |
| Subject: | note 47190 added to function.preg-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-80153@lists.php.net to get a copy of this message | ||
If i want to search for all the Url's on a Page and replace them with another url, I can't
manage to do it, If I search for http:// and replace with myscript.php?url=http:// that works to an extent, but for the majority of links, there is no http:// as the link is local.. How can i get this to work?
I basically want all links on a page to go through my script..
----
Manual Page -- http://www.php.net/manual/en/function.preg-replace.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+47190
Delete -- http://master.php.net/manage/user-notes.php?action=delete+47190&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47190&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47190&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47190&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47190&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47190&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+47190&report=yes
Search -- http://master.php.net/manage/user-notes.php