title: RegEx to replace pattern in text file containing carriage returns (using Notepad2 and C#)
body: <p>I have a text file containing the following string:</p>
  
  <pre><code>--jonesj (release 00)
  some sql goes here
  
  --jonesj (release 01)
  some sql goes here
  
  --smithb (release 01)
  some sql goes here
  </code></pre>
  
  <p>What I want to do is replace all commented-out SQL with an empty string.  The resulting string would look like this:</p>
  
  <pre><code>some sql goes here
  
  some sql goes here
  
  some sql goes here
  </code></pre>
  
  <p>Using Notepad2 as my testing grounds before implementing this in my code, I am trying the RegEx of <code>^--.*$</code>.  However, this appears to be highlighting the entire text file.  I am terrible at RegEx and hope someone can help me along here.</p>