Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 10-21-2010, 10:58 PM   #1
Pat Nickholds
Junior Member
Pat Nickholds began at the beginning.
 
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?
Pat Nickholds is offline   Reply With Quote
Old 10-21-2010, 11:05 PM   #2
desertgrandma
Enjoying the show....
desertgrandma ought to be getting tired of karma fortunes by now.desertgrandma ought to be getting tired of karma fortunes by now.desertgrandma ought to be getting tired of karma fortunes by now.desertgrandma ought to be getting tired of karma fortunes by now.desertgrandma ought to be getting tired of karma fortunes by now.desertgrandma ought to be getting tired of karma fortunes by now.desertgrandma ought to be getting tired of karma fortunes by now.desertgrandma ought to be getting tired of karma fortunes by now.desertgrandma ought to be getting tired of karma fortunes by now.desertgrandma ought to be getting tired of karma fortunes by now.desertgrandma ought to be getting tired of karma fortunes by now.
 
desertgrandma's Avatar
 
Posts: 14,270
Karma: 10462841
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.
desertgrandma is offline   Reply With Quote
Advert
Old 10-21-2010, 11:18 PM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,768
Karma: 54401244
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Pat Nickholds View Post
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?
Just did this
Code:
Find:  ([a-z])</p> <p class="calibre4">
note the paren pair
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
theducks is offline   Reply With Quote
Reply

Tags
regular expression

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Wild Card search and replace crutledge Sigil 2 06-05-2010 04:19 PM
Search and Replace or remove Metadata jazzcat007 Calibre 5 05-21-2010 11:35 AM
Search & replace TEXT ToeRag Calibre 3 04-10-2010 01:44 PM
Search and replace in 0.2.0 paulpeer Sigil 7 03-13-2010 11:59 AM
Why no search and replace? charleski Sigil 10 11-24-2009 04:13 PM


All times are GMT -4. The time now is 02:19 AM.


MobileRead.com is a privately owned, operated and funded community.