How can I replace a string, using normal replace or regular expression to replace only the 2nd found result onwards
<div id="fb-root"></div>
codes
<div id="fb-root"></div>
aas
<div id="fb-root"></div>
ss
<div id="fb-root"></div>
Expected results should be
<div id="fb-root"></div>
codes
aas
ss
the 2nd fb-root div upto the last should be removed.
Thanks in advance for the help.