title: Removing width tag inside table using regex
body: <p>I'm doing some html processing before saving the content to the database. When user paste any content which has html tables, I need to remove some tags and attributes.</p>
  
  <p>I'm extracting the table content via <code>content.match('&lt;table[^&gt;]*&gt;(.*?)&lt;/table&gt;')</code>. In this content, it has width tag as attribute and also inside style tag. <code>&lt;table width="462" style="border-collapse: collapse; width: 348pt;"&gt;</code>. </p>
  
  <p>I want to have that content like <code>&lt;table style="border-collapse: collapse;"&gt;</code>. I do not want to remove width attribute and tag inside <code>tr</code> and <code>td</code>. Can anyone suggest a proper regex pattern to do this?</p>