I'm trying to find the link in a webpage.
given this link:
this works and I am able to find the link in the page:
but if there is a <br> in the link:
it stops working. I'm pretty sure it is the < and/or the > in br.
how can I make my search string handle all characters inside the <a and </a> tags
given this link:
Code:
<a href="[URL unfurl="true"]http://test.com"[/URL] title="title text">test link </a>
Code:
$search = "|<a href=\".*\".*</a>|";
but if there is a <br> in the link:
Code:
<a href="[URL unfurl="true"]http://test.com"[/URL] title="title text">test<br> link </a>
it stops working. I'm pretty sure it is the < and/or the > in br.
how can I make my search string handle all characters inside the <a and </a> tags