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

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 07-14-2011, 09:39 PM   #1
thisisthepope
Junior Member
thisisthepope began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2011
Device: Kindle
can't get Search & Replace to remove my header

I've tried reading what I can on RegEx and tried figuring this out by myself but I'm afraid I have no idea about coding and cannot get the chunk to remove more than one line. I'm depended on the kindness of strangers for this one.

the chunk I want to remove is
Code:
http://content.cdlib.org/xtf/view?docId=ft1s20046f&amp;chunk.id=0&amp;doc.view=print<br>
7/20/2006<br>
<hr>
<A name=179></a>Haiti, History, and the Gods<br>
Page 179 of 250<br>
the only thing that changes is the page number. Can someone please tell me what I need to plug into the Regex builder so that it can locate this header?

thx
thisisthepope is offline   Reply With Quote
Old 07-14-2011, 11:21 PM   #2
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,433
Karma: 950001
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
\d+ for the numbers. Use \s* for new lines. try that.
user_none is offline   Reply With Quote
 
Enthusiast
Old 07-15-2011, 07:54 AM   #3
thisisthepope
Junior Member
thisisthepope began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2011
Device: Kindle
Thank you, that took care of it.

For anyone else with a similar query, the resulting code looked like this:
Quote:
http://content.cdlib.org/xtf/view\?docId=ft1s20046f&amp;chunk.id=0&amp;doc.view =print<br>\s*7/20/2006<br>\s*<hr>\s*<A name=[0-9]+></a>
and then another section that went like this:
Quote:
Haiti, History, and the Gods<br>
Page [0-9]+ of 250<br>
thisisthepope is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Search & Replace/Regex help!! millertime13 Conversion 4 07-22-2011 02:40 AM
Search & Replace Suggestion Philosopher Calibre 6 12-31-2010 11:55 AM
Search & Replace Pat Nickholds Sigil 2 10-21-2010 11:18 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


All times are GMT -4. The time now is 01:03 PM.


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