[Solved] Regex to remove specific params from tags [closed]
[ad_1] HEIGHT: \d+[^;]+; will match HEIGHT: 218px; in <body style=”HEIGHT: 218px; margin: 0px; background-color: #ffffff;” jQuery111105496473080628138=”10″> Something like this could get you going: (HEIGHT:\s*\d{1,}[^;]*;)(?<=<body.*style=”[^”]*)(?=[^”].*”\s*>) Which ~translates~ to : Capture: (HEIGHT:\s*\d{1,}[^;]*;) If preceded by: (?<=<body.*style=”[^”]*) And followed by: (?=[^”].*”\s*>) Implemented in code: using System; using System.Collections.Generic; using System.Text.RegularExpressions; static void Main(string[] args) { string string1 = … Read more