So I want to do some in php, I get a text from wordpress that contains certain links, so what I want to do is first get all the files matching the following
And get a list of all the files on that text matching certain extensions. So basically the stuff in bold will repeat in every link I need to match, but the other thing will change, and I need a place to define the list of extensions for ext.
After that I need to remove from the text the matching link, meaninng:
<a href="matched_link" something> something</a>
Can some body help me with this.