Find all <img> tags and change style attribute <p>i am trying to find a way to get the tag from a string and remove the style attribute . After that i want to add my own style and keep the following text.. For example, i have:</p> <pre><code>&lt;p&gt;&lt;img alt="" src="images/epsth/arismagnisiakos.jpg" style="width: 600px; height: 405px;" /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt; </code></pre> <p>end the endresult should be:</p> <pre><code>&lt;p&gt;&lt;img alt="" src="images/epsth/arismagnisiakos.jpg" style="width: 100%;" /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt; </code></pre> <p>I have unsuccesfully tried regex but it seems like i am too dumb to understand its functionality... </p> <p>Every help would be appreciated! Greetings from Greece Jim</p>