title: Remove all regex coincidence in a string
body: <p>Given a string like this:</p>
  <blockquote>
  <p>[Order Data]\r\n Contract Number=7654321\r\n
  Order Number=00\r\n Contract Order=1234567\r\n Country=Poland\r\n
  Location=whatever\r\n Ship Date=YYYY/MM/DD\r\n...</p>
  </blockquote>
  <p>I want to replace the value between the equals &quot;=&quot; and the new line &quot;\r\n&quot; in each line.</p>
  <blockquote>
  <p>[Order Data]\r\n Contract Number=\r\n
  Order Number=\r\n Contract Order=\r\n Country=\r\n
  Location=\r\n Ship Date=\r\n...</p>
  </blockquote>
  <p>I have tried with something like this.</p>
  <pre><code>string[] stringSeparator= new string[] { &quot;\r\n&quot; };
  List&lt;string&gt; diff;
  
  IEnumerable&lt;string&gt; set1 = 
      file.Split(stringSeparator, StringSplitOptions.None).Distinct();
              
  var cleanLines= new List&lt;string&gt;();
  
  foreach (var set in set1) {
      var index = set.IndexOf(&quot;=&quot;);
      if (index &gt;= 0)
      {
          var input = set.Substring(0, index+1);
          list.Add(input);
      }
      else {
          list.Add(set);
      }
  }
  </code></pre>
  <p>The problem with that solution is that i can not repeat lines to add to the list, so i'm missing in the result some repeated lines after remove the value that come in the file.</p>