title: SED to remove a Line with REGEX Pattern
body: <p>i've got a hundreds of files with thousands of lines, which i need to delete some lines that follows a pattern,so i went to SED with regex .The struct of files is something like this</p>
  
  <pre><code>A,12121212121212,foo,bar,lorem
  C,32JL,JL
  C,32JL,JL
  C,32JL,JL
  C,32JL,JL
  A,21212121212121,foo,bar,lorem
  C,32JL,JL
  C,32JL,JL
  C,32JL,JL
  A,9999,88888,77777
  </code></pre>
  
  <p>I need to delete All the lines that starts with "<strong>A</strong>" and ends with "<strong>lorem</strong>" </p>
  
  <p>Expected output-</p>
  
  <pre><code>C,32JL,JL
  C,32JL,JL
  C,32JL,JL
  C,32JL,JL
  C,32JL,JL
  C,32JL,JL
  C,32JL,JL
  A,9999,88888,77777
  </code></pre>
  
  <p>I've made the Regex :</p>
  
  <pre><code>^(A).*(lorem)
  </code></pre>
  
  <p>And it match in my text editor (Sublime,UltraEdit)</p>
  
  <p>In the UNIX shell </p>
  
  <pre><code>sed '/^(A).*(lorem)/d' file.txt
  </code></pre>
  
  <p>But somehow it doesn't work,it shows the whole file, and i can't figure out why.</p>
  
  <p>Can someone help me please?</p>