View Single Post
Old 11-27-2022, 06:21 PM   #19
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,361
Karma: 20212223
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Quote:
Originally Posted by LostOnTheLine View Post
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
Yes…again my assumption was that you were familiar with find/replace/regex operations and had added the ‘insert’ as a flag and that you did not want to keep the flag after the replace (see my first example).

I’m glad you got it to work!
Turtle91 is offline   Reply With Quote