I have bunch of files like these
<code><IMG height=694
src="" width=201>
</code>
<code><IMG height=694
src="" width=201>
</code>
<IMG height=694
src="" width=201>
and I would like to remove all of image tags with empty source attribute.
Which regex I should use to match such tags? They might have different height and width and line breaks in random places.
4
The following regexp would solve this
<code><IMG [a-zA-Z0-9= n]+src=""[a-zA-Z0-9= n]+>
</code>
<code><IMG [a-zA-Z0-9= n]+src=""[a-zA-Z0-9= n]+>
</code>
<IMG [a-zA-Z0-9= n]+src=""[a-zA-Z0-9= n]+>
And then it is possible to search replace by empty string all occurences in the project