Perhaps a strange question, but why don't you insert a splitmarker by searching for h1/h2 and put a splitmarker in front. Then you can easily with one command split the HTML into separate files at the markers. Saves a lot of work... Two actions, one S&R and one split action.
Also, if you changes your files like you do, it would be better to recreate the toc first after each split.
|