Possible Duplicate:
Grabbing the href attribute of an A element
I am trying to preg_match_all tags to do specific stuff to them, however, there is one type of that I want to ignore the preg_match_all. I thought about giving the img a class so and for the preg_match_all to ignore all imgs with the class "ignored".
In other words, do a preg_Match_all and if you find the word "ignored", skip it.
my code so far is:
preg_match_all( '/<img\s+.*?>/', $content, $matches );
but that detecs all img, I'm stuck on how to ignore ones with the word "ignored" in it.
Hopefully someone can give me a hand, thanks guys.