Quote:
Originally Posted by prky
Given the above test, where the regex works fine in http://www.pythonregex.com/ but it doesn't in Calibre, I'm suspecting it's a Calibre bug.
How do I go about confirming this / lodging it?
|
I've seen several discussions of problems with multiline regex matching. I don't do much conversion, so I've never looked at it, but I've read the threads, and the impression I get is that it may lie in the fact that the conversion process is a pipeline, and the regex may be applied at a later point in the pipeline than is expected. Or I may be totally off base.
As to how to confirm, you can always look at the code, which is open. As to how to report it, the
bug tracker is the place.
As to a workaround, have you tried using two single line matches? Again, I'm no expert, but I have the impression that you could single line match the header and the footer to remove two single lines. Despite the fact that the header/footer removals are labeled as such, I think they match anywhere.