Quote:
Originally Posted by LostOnTheLine
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!