Reading a file and changing <a href> tag values

From: Date: Sat, 14 Apr 2001 05:21:43 +0000
Subject: Reading a file and changing <a href> tag values
Groups: php.general 
Request: Send a blank email to php-general+get-48510@lists.php.net to get a copy of this message
I have been able to find out how to read a file and replace certain matches, but I want to be able to take a web page stored in a string and change the <a href> tags and add www.mysite.com?page= before the actual link value so the new url would read www.mysite.com?page=original_url. Can I do this and if so will someone give me an idea how? Thanks. Brett

« previous php.general (#48510) next »