Quantcast
Channel: MobileRead Forums
Viewing all articles
Browse latest Browse all 46876

regex search and replace with increment numbers?

$
0
0
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!!!

Viewing all articles
Browse latest Browse all 46876

Trending Articles