fork(1) download
  1. using System;
  2. using System.Text.RegularExpressions;
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. string input = @"<p thing=""stuff; stuff"" style=""color: #000000; text-transform: none; letter-spacing: normal; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; word-spacing: 0px; white-space: normal; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px;"">";
  8. string output = Regex.Replace(input, @"(?<=<p)([^>]*?)\s*style=""[^"">]+""", "$1");
  9. Console.WriteLine(output);
  10. }
  11. }
Success #stdin #stdout 0.07s 34048KB
stdin
Standard input is empty
stdout
<p thing="stuff; stuff">