Hi, I need to extract the Href and the element data. e.g. <a class="test" href="example.html">content</a> thanks in advance
refer to following link... It will give you brief idea about how anchor tags are parsed using regex http://stackoverflow.com/questions/1399768/php-regex-or-alt-method-for-anchor-tags