Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 11-08-2016, 03:09 AM   #1
ksimpson1986
Member
ksimpson1986 began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Oct 2016
Device: ibooks
regex search and replace with increment numbers?

I have 1500 text blocks throughout this eBook...every one of these text blocks have a container called

<div id="_idContainer010" class="box">

every single text block is SUPPOSED to range from

<div id="_idContainer010" all the way to <div id="_idContainer1500"

these are scattered throughout the entire book, so i can't just use notepad++ or excel to create increment numbers... it HAS to be a search and replace...i can even set all containers to

<div id="_idContainer1" class="box">

if it makes things easier...i'm really stuck on this. hopefully you guys have an idea! thank you!

the only reason i'm having to do this is because the epub validator errored on every one of the text blocks saying that there were duplicate ids...i honestly didn't think it would be an issue for multiple paragraphs to share a container id? i have no clue why it doesn't like this. if anyone has any suggestions that will keep me from spending 3 days straight going container to container changing the id manually, i would appreciate it!!!
ksimpson1986 is offline   Reply With Quote
Old 11-08-2016, 03:21 AM   #2
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,694
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Have a look at my Incremental IDs Sigil plugin.

If it doesn't work for you, there's also a Calibre function that does pretty much the same thing.
Doitsu is offline   Reply With Quote
Old 11-08-2016, 06:25 AM   #3
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,646
Karma: 8566337
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Also you could use PowerGREP .
RbnJrg is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Regex: Search and Replace Thomas_AR Calibre 2 03-31-2016 06:23 PM
regex search/replace - how to? Alt68er Sigil 1 03-11-2014 08:53 PM
Regex search and replace dwlamb Sigil 6 04-12-2013 02:34 PM
regex search/replace Sharlene Sigil 10 01-28-2012 04:14 AM
need regex help search and replace schuster Calibre 4 01-10-2011 09:00 AM


All times are GMT -4. The time now is 07:00 AM.


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