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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]