Trying to find the links on a page.
my regex is:
/]*href=(\\\"\\\'??)([^\\\"\\\' >]*?)[^>]*>(.*)<\\/a>/
For the one who still not get the solutions very easy and fast using SimpleXML
$a = new SimpleXMLElement('Click here');
echo $a['href']; // will echo www.something.com
Its working for me