title: PHP preg_replace: remove style=".." from img tags
body: <p>I'm trying to find an expression for preg_replace, that deletes all inline css styles for images.
  For example, I have this text:</p>
  
  <pre><code>Lorem ipsum dolor sit amet, consectetur adipiscing elit. &lt;img style="float:left; margin:0 0 10px 10px;" src="image.jpg" /&gt; Proin vestibulum libero id nisl dignissim eu sodales.
  </code></pre>
  
  <p>And I need to make it look like:</p>
  
  <pre><code>Lorem ipsum dolor sit amet, consectetur adipiscing elit. &lt;img src="image.jpg" /&gt; Proin vestibulum libero id nisl dignissim eu sodales.
  </code></pre>
  
  <p>I have tried dozens of expressions like</p>
  
  <pre><code>preg_replace("%&lt;img(.*?)style(.*?)=(.*?)(\'|\")(.+?)(\'|\")(.*?)&gt;%i", "&lt;img\$1\$7&gt;", $article-&gt;text)
  </code></pre>
  
  <p>but nothing worked. Any suggestions?</p>