title: JavaScript String Replace with a tricky regular expression
body: <p>I'm trying to work out what regular expression I would need to change this string</p>
  
  <pre><code>html = '&lt;img style="width: 311px; height: 376px;" alt="test" src="/img/1268749322.jpg" /&gt;';
  </code></pre>
  
  <p>to this</p>
  
  <pre><code>html = '&lt;img width="311" height="376" alt="test" src="/img/1268749322.jpg" /&gt;';
  </code></pre>
  
  <p>with the help of Javascript.replace.</p>
  
  <p>This is my start:</p>
  
  <pre><code>html = html.replace(/ style="width:\?([0-9])px*"/g, "width=\"$1\"");
  </code></pre>
  
  <p>Can anyone help me? </p>
  
  <p>THANKS</p>