I am guessing that your regex is incomplete and the headers actually have the page number there as well - so you are deleting all except the page number.
I always use the wizard button next to the regex field so that I can check that I have matched sufficient text.
|