I'm trying to write a regex to pull everything out within an anchor tag, which may include other tags eg.
<a href="blah.php" title="meh">(some text here)</a>
<a href="blah.php" title="more meh">(<span>more text</span>)</a>
basically everything within the brackets above.
I've used <a href="([^"])" title="([^"])">(.*)</a> however as I have more than one link in the variable that I'm going through, the .* is of course getting everything until the final closing anchor tag.
I can't just use a [^<] as there may be a different tag in there that I still need as with my example above. Any suggestions as to how to say 'everything until you reach a </a>' ?
Thanks muchly
