Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 03-25-2018, 01:15 PM   #1
Solo1959
Connoisseur
Solo1959 can self-interpret dreams as they happen.Solo1959 can self-interpret dreams as they happen.Solo1959 can self-interpret dreams as they happen.Solo1959 can self-interpret dreams as they happen.Solo1959 can self-interpret dreams as they happen.Solo1959 can self-interpret dreams as they happen.Solo1959 can self-interpret dreams as they happen.Solo1959 can self-interpret dreams as they happen.Solo1959 can self-interpret dreams as they happen.Solo1959 can self-interpret dreams as they happen.Solo1959 can self-interpret dreams as they happen.
 
Posts: 73
Karma: 20000
Join Date: Feb 2011
Location: Florida
Device: Kindle Oasis 2, Kindle Voyage, Kindle 5th gen, and many in the past
Page Number Expressions

I am looking for a Search and Replace method for finding and removing all expressions such as this one:

<a id="page36"></a>

from epubs that I am editing. there could be hundreds of these each with a unique page number. It should probably use a wildcard but I can't find anything that works.

I can't figure out what to type into the "Find" box that will find all of them.

Has someone figured this out? It is tedious to go through and delete them one by one.

Thank you for any help.
Solo1959 is offline   Reply With Quote
Old 03-25-2018, 01:20 PM   #2
deback
Book E d i t o r
deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.
 
Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
Using Regex, enter this in the Find box:

<a id="page(\d+)"></a>
deback is offline   Reply With Quote
Advert
Old 03-25-2018, 01:23 PM   #3
Solo1959
Connoisseur
Solo1959 can self-interpret dreams as they happen.Solo1959 can self-interpret dreams as they happen.Solo1959 can self-interpret dreams as they happen.Solo1959 can self-interpret dreams as they happen.Solo1959 can self-interpret dreams as they happen.Solo1959 can self-interpret dreams as they happen.Solo1959 can self-interpret dreams as they happen.Solo1959 can self-interpret dreams as they happen.Solo1959 can self-interpret dreams as they happen.Solo1959 can self-interpret dreams as they happen.Solo1959 can self-interpret dreams as they happen.
 
Posts: 73
Karma: 20000
Join Date: Feb 2011
Location: Florida
Device: Kindle Oasis 2, Kindle Voyage, Kindle 5th gen, and many in the past
Quote:
Originally Posted by deback View Post
Using Regex, enter this in the Find box:

<a id="page(\d+)"></a>
Thank you - quick and easy. They are _parentheses_. I was using brackets and it didn't do anything. Thank you very much.
Solo1959 is offline   Reply With Quote
Old 03-25-2018, 02:18 PM   #4
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: 30,993
Karma: 60358908
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 Solo1959 View Post
Thank you - quick and easy. They are _parentheses_. I was using brackets and it didn't do anything. Thank you very much.
you only need Paren (\d+) if you need to capture that part for the replace term.
theducks is offline   Reply With Quote
Old 03-25-2018, 02:20 PM   #5
deback
Book E d i t o r
deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.
 
Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
I knew that, theducks, but I'm in the habit of including the parentheses all the time, which avoids any confusion about what to do when and where.
deback is offline   Reply With Quote
Advert
Old 03-25-2018, 06:42 PM   #6
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,688
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by deback View Post
I knew that, theducks, but I'm in the habit of including the parentheses all the time, which avoids any confusion about what to do when and where.
- and not only in regex strings, in everything.

BR
BetterRed is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Page number editing. CarlM Calibre 8 04-25-2015 03:19 PM
Page number glitch peejayw Kobo Reader 4 01-29-2013 07:06 AM
Glo Jump to page number? gianfri Kobo Reader 9 12-25-2012 08:02 PM
Page number skully Amazon Kindle 2 05-29-2011 11:49 PM
print page number m3l7d0wN Calibre 2 04-14-2011 03:25 PM


All times are GMT -4. The time now is 12:23 AM.


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