View Single Post
Old 11-27-2022, 01:15 PM   #17
LostOnTheLine
Connoisseur
LostOnTheLine ought to be getting tired of karma fortunes by now.LostOnTheLine ought to be getting tired of karma fortunes by now.LostOnTheLine ought to be getting tired of karma fortunes by now.LostOnTheLine ought to be getting tired of karma fortunes by now.LostOnTheLine ought to be getting tired of karma fortunes by now.LostOnTheLine ought to be getting tired of karma fortunes by now.LostOnTheLine ought to be getting tired of karma fortunes by now.LostOnTheLine ought to be getting tired of karma fortunes by now.LostOnTheLine ought to be getting tired of karma fortunes by now.LostOnTheLine ought to be getting tired of karma fortunes by now.LostOnTheLine ought to be getting tired of karma fortunes by now.
 
Posts: 72
Karma: 800000
Join Date: Jun 2021
Device: Kindle Paperwhite (PW1|PW3|PW4), Kindle Voyage
Quote:
Originally Posted by Turtle91 View Post
Code:
find: <img(.*?)insert(.*?)/>
replace: <hr class="sigil_split_marker" /><img\1\2/><hr class="sigil_split_marker" />
Then (as BeckyEbook said):
click Edit/Split at Markers (F6)
I finally got this to work. I couldn't see the forest for the trees. The problem I was having was because the replace was missing the search term. I feel kinda stupid for not realizing it until I did a side-by-side comparison.

For any future searchers looking for this the working Find&Replace is:

Step 1: Set [Mode] to Regex (Took me a few tries before I realized I needed to, it's obvious but easily overlooked)
Step 2: Find & Replace
Code:
Find: <img(.*?)insert(.*?)/>
Replace: <hr class="sigil_split_marker" /><img\1insert\2/><hr class="sigil_split_marker" />
The replace needs to include the word "insert", with no spaces or anything else, after "\1" & before "\2"
Step 3: Edit > Split at Markers ( or press F6)
Step 4: Profit

Obviously it can be altered however, but the initial one was just missing that

Last edited by LostOnTheLine; 11-27-2022 at 01:20 PM. Reason: Formatting
LostOnTheLine is offline   Reply With Quote