Nov 4, 2012, 12:07 PM
I can't give the exact code, as it's on our intranet site.
Re: [Laurent_R] Obtaining urls from source code
1 - sequential statement</a><br>
I've got the code to return any line starting with a <href="http://...
-How to add those lines to an array (this would be the best method, right? My boss said he'd like it that way if possible)
I've been able to do a foreach loop and add the data, but I'd like to hear your opinion.
-After your regular expressions finds the lines with urls, how to you get it to just print out http://www.whatever.co.uk.index.html, etc. without all those added details. My issue is that I want to be able to copy it into a word/excel doc and divide them up for my Visio layout.
This is just a very basic attempt. I'm still working on it. I've got work around the house to complete as well.
if($line =~ /<a href= "http:\/\/(.+)"/)
Perl Newbie - 7 months of PERL basics.
(This post was edited by wyndcrosser on Nov 4, 2012, 12:09 PM)