Posted by Pol on 02/22/06 23:46
1. I am trying to parse URLs from a txt file. The file will contain
either one link or multiple links. They may or may not have a protocol
def like http:// or ftp:// prepended.
I would like to parse this file and load these into an array.
I would also like to normalize any links without the protocol def such
as www.foobar.com to a default of http://www.foobar.com.
2. I would like to parse a link such as this:
<a href="http://www.foobar.com target="_blank">Test</a>
and load just the link(http://www.foobar.com) and proper name (Test)
into 2 separate arrays.
Any help appreciated or a link to an appropriate FAQ would also be
appreciated.
Thanks!!
Navigation:
[Reply to this message]
|