Sorry, if this has been asked and answered before, but I cannot seem to find an answer to this.
Since regex is not my strong side I turn to you, SO. I'm stuck with a regex that needs to find all the image tags in text except ones that have a certain attribute and value. At this point I am not even sure if that is doable, if it is - any help is appreciated.
/<img.*?\/(img)?>/si
This is what I use to match all of the image tags - simple and straight forward. But what should I add/modify for it to ignore image tags with class='ignore'
for example.
Cheers!