to take everything from "<a href=" up to ">" i did it with (.&) and eregi.
thanks nick!
Nick Riemondi wrote:
I'm not sure what your file looks like, but basically you just want to parse the file. So, say you read a line in and it looks like this:
<a href=http://www.yahoo.com/>My Yahoo Link</a>
You'll then want to use PHP's string functions to retrerieve the data you want. How you do it depends on the format of your file, but essentially you want to look for common elements:
So you could take everything from "<a href=" up to ">" and that's your link, then everything after that up to "</a>" is your title.
Hopefully that helps get you thinking in the right direction.