If you want to remove inline css, there is no need to bother Regex, just use
jQuery[
^] and call
.removeAttr() method[
^] on the html element.
For example:
<p style="background-color: red">This is another paragraph.</p>
this will remove the style
$("p").removeAttr("style");
+++++[Round 2]+++++
To do it on code behind
aspx:
<asp:Label ID="Label1" runat="server" Text="Label" style="background-color: red"></asp:Label>
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />
aspx.cs:
protected void Button1_Click(object sender, EventArgs e)
{
Label1.Style.Clear();
}