title: How to exclude lines with regexp
body: <p>I have a list of lines with numbers. Need to exclude from it all lines starting with <code>373</code>.</p>
  
  <p>For example my list is:</p>
  
  <pre><code>37322433151
  37323175491
  19376717186
  79684480273
  97246000252
  37323175491
  37323175491
  40745108277
  </code></pre>
  
  <p>If i do <code>cat ... | egrep '^[^373].*'</code>, then it excludes lines that start from <code>3</code> or <code>7</code>, the output is</p>
  
  <pre><code>19376717186
  97246000252
  40745108277
  </code></pre>
  
  <p>Even if expression is <code>^[^(373)].*</code></p>
  
  <p>I need too exclude only if line starts with <code>373</code>. Could anyone tell me what expression should be used ?</p>
  
  <p>I also tried <code>'^(?!373).*</code></p>