I am currently having this problem. I have a section of HTML that looks like the following....
Go to the BBC's website <a href=http://www.bbc.co.uk">BBC</a> or you can visit the inland revenues pages at <a href="http://www.inlandrevenue.com">Inland Revenue</a> which will give you the information you need
From this code I need to extract out the data from the anchor tags so that the 'http://www.bbc.co.uk' part is in one variable, 'www.bbc.co.uk' (I understand that I can just strip the first part to get this) is in another and the 'BBC' part is also in a variable. I need to try this for each web link/anchor tag that I come across.
I have looked at the HTML toke parser module but I'm very new to Perl and it doesn't make much sense to me.
Thankyou
In reply to Extracting href's by Scott_J
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |