Hello world i need to analize multi link
if i analize such multilink
<a href='asdas'>hello</a>
<a href='asdas'>hello</a>
<a href='asdas'>hello</a>
<a href='asdas'>hello</a>
i use such expression with preg_match_all:
<a href=\'?"?([^"\' ]*)([^>]*)>([^<]*)<\/a>
but if link contains img like this:
<a href='asdas'><img src='asdsad' /></a>
<a href='asdas'><img src='asdsad' /></a>
<a href='asdas'><img src='asdsad' /></a>
<a href='asdas'><img src='asdsad' /></a>
i can't use ([^<]*) and if i make there (.*)
in this block would be
<img src='asdsad' /></a>
<a href='asdas'><img src='asdsad' /></a>
<a href='asdas'><img src='asdsad' /></a>
<a href='asdas'><img src='asdsad' />
but i need only <img src='asdsad' />
may be somebody can help me make unique string for both types of <a href>
Thanks in advance!