title: Remove inner style from HTML using Regex C#
body: <p>I want to remove inner style from html by using c#. Here is my Html text </p>
  
  <pre><code>    &lt;span style="font-family: tahoma; color: #9bbb59;"&gt;This is a simple text.&lt;/span&gt;&lt;br /&gt;
  &lt;table&gt;
      &lt;thead&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;&amp;nbsp;R1C1&lt;/td&gt;
              &lt;td&gt;R1C2&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;R2C1&lt;/td&gt;
              &lt;td&gt;R2C2&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
  &lt;/table&gt;
  &lt;style type="text/css" id="telerik-reTable-1"&gt;
      .telerik-reTable-1   {
      border-width: 0px;
      border-style: none;
      border-collapse: collapse;
      font-family: Tahoma;
      }
      .telerik-reTable-1 td.telerik-reTableFooterEvenCol-1  {
      padding: 0in 5.4pt 0in 5.4pt;
      text-align: left;
      border-top: solid gray 1.0pt;
      }
  &lt;/style&gt;
  </code></pre>
  
  <p>I want it to looks like after remove inner css.</p>
  
  <pre><code> &lt;span style="font-family: tahoma; color: #9bbb59;"&gt;This is a simple text.&lt;/span&gt;&lt;br /&gt;
  &lt;table&gt;
      &lt;thead&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;&amp;nbsp;R1C1&lt;/td&gt;
              &lt;td&gt;R1C2&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;R2C1&lt;/td&gt;
              &lt;td&gt;R2C2&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>I used this pattern <code>@"&lt;\s*style[^(style&gt;)]*style&gt;"</code>. But it's not working.</p>
  
  <blockquote>
    <p>Note: I think I cann't use HtmlDocument to remove child node. Because
    it does not maintain parent child node relationship. so I want to use
    regular expression to remove the CSS.</p>
  </blockquote>