I have a string that contains an entire webpage.
I need a regex that will return only items that start with: <a
and will end with: /a>
(it does need to include any title text, so the above requirements are literal)
Any help is deeply appreciated, as all my attempts have failed miserably.
Capture contents of a hrefs
Moderator: General Moderators
Code: Select all
$pattern = "#(<a.*?/a>)#";