Possible Duplicate:
Grabbing the href attribute of an A element
I've gone through a lot of other posts and saw that all of them follow some fixed Anchor tag format. Most of them assume that anchor tag format to be <a href="http://www.example.com/">Hello</a>
.. and maybe a target
property after <a
.. But I am trying to write a regex to match the href of an anchor tag, wherever it might appear in the tag. It can appear after alt, title, target or maybe between them. and there's another case that the anchor tag uses single quote instead of double quotes.
I've trying this for half an hour and not getting any result. So posting it here.