Re: [PHP] Reading a file and changing a href tag values

2001-04-14 Thread Plutarck
All you need is a regular expression, provided by ereg function or preg functions. You'd have the regex look for a href then capture everything up to /a Then just adjust the result as you want it to appear. You'll need to either search around for code that already does this, or be willing to

[PHP] Reading a file and changing a href tag values

2001-04-13 Thread Brett
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