10-21-2010, 11:58 PM | #1 |
Junior Member
Posts: 1
Karma: 10
Join Date: Oct 2010
Device: Kobo
|
Search & Replace
I am cleaning up the formatting of a number of EPUB books converted from PDF by CALIBRE.
I am using the REPLACE via CODE VIEW and find it extremely powerful...eg FIND WHAT: a</p> <p class="calibre4"> REPLACE WITH: a <space> ..will neaten everything up. However I need to go thru the alphabet (and coma, semi colon, etc) to get the formatting complete - very time consuming. In a attempt to automate the process somewhat I am now experimenting with REGULAR EXPRESSIONS and have managed to work out the SEARCH or FIND WHAT: [a-z]</p> <p class="calibre4"> but I am struggling with the REPLACE WITH: statement. Can anyone help? |
10-22-2010, 12:05 AM | #2 |
Enjoying the show....
Posts: 14,270
Karma: 10462843
Join Date: Jun 2008
Location: Arizona
Device: A K1, Kindle Paperwhite, an Ipod, IPad2, Iphone, an Ipad Mini & macAir
|
Welcome to MobileRead, Pat.
Someone should step in soon with suggestions. |
Advert | |
|
10-22-2010, 12:18 AM | #3 | |
Well trained by Cats
Posts: 30,448
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Code:
Find: ([a-z])</p> <p class="calibre4"> whatever matches the ontents will be passed In you first example, it would put a lowercase a followed by a space so your Code:
replace: \1a space here |
|
Tags |
regular expression |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wild Card search and replace | crutledge | Sigil | 2 | 06-05-2010 05:19 PM |
Search and Replace or remove Metadata | jazzcat007 | Calibre | 5 | 05-21-2010 12:35 PM |
Search & replace TEXT | ToeRag | Calibre | 3 | 04-10-2010 02:44 PM |
Search and replace in 0.2.0 | paulpeer | Sigil | 7 | 03-13-2010 12:59 PM |
Why no search and replace? | charleski | Sigil | 10 | 11-24-2009 05:13 PM |