I have text file which contais several links and html formatted text (all tags under control). Want to filter it from all (text and html) using preg_replace. I want to keep links with anchor only.
Example of my file.
1337289282¶sentence, page 1¶<div class="postbody">
<div...