View Single Post
Old 04-15-2015, 12:15 PM   #6
ColMac
Connoisseur
ColMac began at the beginning.
 
Posts: 59
Karma: 10
Join Date: Apr 2012
Device: Kindle Fire
Search regex problem

Quote:
Originally Posted by cybmole View Post
ok at my PC now here is how I'd do it with Sigil
1. highlight a relevant fragement e.g. this from your example
</p>
<p class="calibre1">h

2. paste that into the find part of the regex. (pasting it as-is will take care of the space between lines issue. )
3. now replace that closing h with ([a-z]) so that it matches any lower case
the replace string for the regex is (blank space)\1
That works perfectly.

First one I tried found almost 4,000 occurrences. I'm pretty sure that there may be an error in that 4,000, but it is a massive improvement on what I had before.

Thanks for the help.
ColMac is offline   Reply With Quote