[PHPLIB] Extracting URL From: Adrox (adrox <email protected>)
Date: 12/30/99

Hi, I was wondering if anyone could help me out. I have a page which I wish
to run a PHP3 script on to make it printable. I have removed all HTML codes
except I wish to extract the URL so if I originally had something like:

<a href="http://www.yahoo.com">Yahoo!</a>

It would turn it into:

Yahoo! (http://www.yahoo.com)

Anyone know how this would be possible. I've played around with preg_replace
a bit but couldn't get it to work properly. Any help is apreciated.

--------------------------------------------------------------------
Paul
http://www.top-www.com
http://www.emusphere.com
--------------------------------------------------------------------

-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.