Thank you, Kovid.
I did not come across the "(?s)" parameter in my brief education on Regex under Python.
One further problem, however...
The expression you wrote worked perfectly under the Regex "Test" procedure in Calibre. Oddly, though, the selected text was not deleted. And yes, I had selected "Remove Header" under Structure Detection.
Do you know what is going on, and how I might fix it?
Thanks again.
Mark
|