I have some HTML strings with this format
<span>SpanText</span>
<a href="link.html" title="link">Link Text</a>
I use this regexp to extract the data
$regexp = "<span>(.*)<\/span><a\s[^>]*href=(\"??)([^\" >]*?)\\1[^>]*>(.*)<\/a>";
preg_match_all("/$regexp/siU", $string, $matches, PREG_SET_ORDER);
This returns nothing.
There must be a problem with the regexp ?
I want to extract the span text and the link text.