Quote:
Originally Posted by larysa
@theducks: tanxs, now i try! PS i use calibre, not sigil!
@ davidfor: I’ve try regex capitalize text, but not work! On find i write <p class=“body”>
and on regex i type on Capitalize text (ignore tags), then click on find, calibre find my p class but don’t capitalize my first word! Why?
|
Actually, I hit something similar to what you want last night. The case I had looked like:
Code:
<p>Fred said, "this is some dialog
That was scattered through the book with different names. From memory, the search I used was:
Code:
<p>\w+ said, ("[[:lower:]])
Then I used one of the case changing functions, I think it was the "Capitalize text (ignore tags)". What it did is to capitalize what was in the matching group and leave the rest unchanged.
I think that's what I did. I'm at work and can't look back through the search history to be sure. Or test it.