View Full Version : Search and Replace problem


naro_c
02-13-2011, 12:57 PM
Hello,
I'm converting PUB -> MOBI and I want to remove simple expression (page numbers). This is what I did:

1) Select book, click at Convert books, click at Search and Replace
2) Click at wizard for the First expression
3) Search for piece of code I want to replace:

..... Přes svou drobnou postavu</p>
<p><i>11</i></p>
<p>byl urostlý, elegantní, přívětivý,.....

so my regular expression is:

<i>\d+</i>

4) test it, search Previous/Next expression works fine. There is 691 occurrences
5) Click OK (close Test window); click OK (start conversion)
6) After conversion finishes, click at MOBI variant and check generated output. Unfortunately, the page numbers are still present.

Any ideas?

Manichean
02-13-2011, 02:16 PM
Are you absolutely sure you're looking at the Mobi output? Did you select to view a specific format, or did you just click view?

zorko
02-17-2011, 10:13 PM
I am having basically the same problem myself. I am trying to remove the headers and footers from an EPUB but nothing happens.

Fisrt I tried converting from EPUB to EPUB. I tested the regular expression using the wizard button and what I wanted removed was nicely highlighted. After doing the conversion the book looked exactly the same.

Then I thought the conversion should be between different formats so I went from EPUB to LIT. The resulting LIT still had the headers and footers.

Then I removed the EPUB and kept the LIT. Tested the regular expression again and everything was again highlighted in yellow. Did the conversion from LIT to EPUB and a new EPUB was created but the headers and footers were all there.

I tried the same but filling the replace box with XXXXXXXXXXXX searched for that in the resulting file but it was not there. I cannot figure out what I am doing wrong. Is there a flag somewhere that turns off search and replace during conversion? Anything else I can try?

naro_c
02-18-2011, 02:31 AM
Are you absolutely sure you're looking at the Mobi output? Did you select to view a specific format, or did you just click view?

Yes, I clicked at "MOBI" format below book cover (right part of the screen)

ldolse
02-18-2011, 02:57 AM
Yes, I clicked at "MOBI" format below book cover (right part of the screen)

If you're trying to remove headers from an epub while converting it to mobi then you need to select the epub for testing/regex creation in the search and replace wizard.

naro_c
02-25-2011, 01:59 AM
There is no other format than source PUB when I try to convert for the first time.