I'm having the same trouble here. Here's a piece of what I'm working trough:
Code:
There was a lot of art in the supposedly natural falling of women's hair. Her features were even and possessed the particular properties and proportions that appealed to him, though he could not define precisely what these were. His shyness loomed up inside him, so that he did not trust himself to speak. </p><p>
"I am Sheen," she said. "I would like to challenge you to a Game." </p><p>
<a href="http://www.abbyy.com/buy"><b>PDF Transform</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>PDF Transform</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>Y</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>Y</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>Y</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>er</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>Y</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>er</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>B</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>2</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>B</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>2</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>B</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>.0</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>B</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>.0</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>A</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>A</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>Click here to buy</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>Click here to buy</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>w</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>w</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>w</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>w</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>w</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>o m</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>. </b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>w</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>A B B YY.c </b>She could </a>not be a top player. Stile knew every ranking player on every a<a href="http://www.abbyy.com/buy">ge-ladder by sight and style, </a></p><p>
<a href="http://www.abbyy.com/buy"><b>.A B BYY.com</b></a></p><p>
<a href="http://www.abbyy.com/buy">and she was on no </a>ladder. Therefore she was a dilettante, an occasional participant, possibly of some skill in selected modes but in no way a serious competitor. Her body was too lush for most physical sports; the top females in track, ball games and swimming were small breasted, lean-fleshed, and lanky, and this in no way described Sheen. Therefore he would have no physical competition here. </p><p>
Yet she was beautiful, and he was unable to speak. So he nodded acquiescence. She took his arm in an easy gesture of familiarity that startled him. Stile had known women, of course; they came to him seeking the notoriety of his company, and the known fact of his hesitancy lent them compensating</p><p>
I've a little experience with regexp, but I am by no means a pro. However, I managed to come up with the following:
Code:
<p>\s*<a href="http://www.abbyy.com/buy">(<b>.*?</b>)?|</a>(</p>)?
...which works perfectly over at our friends at
http://regexpal.com (which is a lot quicker to work with than Calibre).
In Calibre, however, this seems not to be working. To narrow it down, I can't manage to select
even with
or even
Does anyone of you have any idea? Thank you and all!
Related: can anyone tell me where to find the 'debug' button mentioned at
http://calibre.kovidgoyal.net/user_m...l#introduction? Tried starting calibre-debug.exe which does give some insights though in things I am not currently interested in.
...After that, I'm going to have to figure out how to get the document flow right again as every line ends with </p><p>... sigh, why do people insist on using PDF's to share eBooks... after all the trouble they've gone trough to scan and ocr it and all!