This project has moved and is read-only. For the latest updates, please go here.

Replace on occurence number

Aug 24, 2016 at 11:09 AM
Hi, very nice tool. Was wondering if anyone has implemented the following additional option 'replace on occurrence number' eg. --replaceO 2-5 , -replaceO 1,2,7

I have many generated html files that usually need tag removals by commenting as below.
<div class="col-xs-12 col-md-6 col-lg-7">
replaced by
<!div class="col-xs-12 col-md-6 col-lg-7">

file1 9 occ. all but the first two occurrences need replace. --replaceO 3 or 3-9
file2 6 occ. all but the first two occurrences and last one need replace. --replaceO 3-5