title: remove n lines after matching pattern?
body: <p>In javascript I am trying to remove 3 lines after matching pattern (including line with matching pattern) </p>
  
  <pre><code>#Guest 
  line 1
  line 2
  line 3
  </code></pre>
  
  <p>I know how to do it sed , look <a href="https://stackoverflow.com/questions/4396974/sed-or-awk-delete-n-lines-following-a-pattern">here</a>. Don't how to translate to javascript</p>
  
  <pre><code>??? data.replace(/.*#Guest.*+5d/g, ''); 
  </code></pre>