title: Finding strings that begin with -- and end with a linefeed
body: <p>I am using the following regex to locate in a document any series of characters that begins with characters dash dash <code>--</code> and ends with a line feed character <code>/n</code>.</p>
  
  <pre><code>return @"(^--).*?(?=\r|\n)";
  </code></pre>
  
  <p>Almost works but only when there is a space between the <code>--</code> and the next character.</p>
  
  <pre><code>return @"(?:--\s).*?(?=\r|\n)
  </code></pre>
  
  <p>Almost works but only when there is no space between the <code>--</code> and the next character.</p>
  
  <p><em><strong>How do I get my return whether a space is following the <code>--</code> or not?</em></strong>  </p>
  
  <p>I know nothing of regex other than what it's capable of.  I found both of these sample patterns online.  Thanks for your assistance.</p>