![]() |
#1 |
Member
![]() 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!!! |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |