I need a pcre regex that will select all html img tags without a src part. Long story. With help I got to (?-s)<img(?!.*?src).*?\/> which worked fine until a line got a second img tag WITH src part. The regex matched the first <img with the last /> :(
How can I select the bad part <img border="0" /> from:
<p align="center"><img border="0" /> <a href="http://www.megaevent2014.com/enllac/"><img alt src="http://www.megaevent2014.com/banner/gran/" /></a></p>
In one regular expression.
And the img tags can be invalid for a lot of reasons. Weeding out "border" does not help. I need to select the tags without src, not caring about anything else.
Please advice, Best regards, Peter