title: Replace a string starting on 2nd
body: <p>How can I replace a string, using normal replace or regular expression to replace only the 2nd found result onwards</p>
  
  <pre><code>&lt;div id="fb-root"&gt;&lt;/div&gt;
  codes
  
  &lt;div id="fb-root"&gt;&lt;/div&gt;
  
  aas
  &lt;div id="fb-root"&gt;&lt;/div&gt;
  ss
  &lt;div id="fb-root"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Expected results should be</p>
  
  <pre><code>&lt;div id="fb-root"&gt;&lt;/div&gt;
  codes
  
  
  aas
  ss
  </code></pre>
  
  <p>the 2nd fb-root div upto the last should be removed.</p>
  
  <p>Thanks in advance for the help.</p>