How to remove image elements from string that has specific alt= value?
<p>I have a string that contains HTML image elements that is stored in a var.
I want to remove those image elements that has alt="today" and leave the rest of images untouched .</p>

<pre><code>&lt;img src="./images/ok.gif" alt="today" /&gt;
</code></pre>

<p>I have tried: </p>

<pre><code>var replaced2 = content.replace(/\&lt;img src="./images/ok.gif" alt="today" /&gt;\/g,'');
</code></pre>

<p>but had no luck.
Can anyone help me out at all?
Thanks</p>
