View Single Post
Old 04-11-2018, 03:29 PM   #3
Shagbark
Member
Shagbark began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jul 2015
Device: Nook Simpletouch
Where does the ?m go?

$ ebook-convert.exe sample.txt sample2.txt --sr1-search '?m^abc' --sr1-replace 'zzz'
...
$ cat sample2.txt
=~ abc def

(It actually puts the =~ into the output, which makes me suspect the program is somehow dropping a bit of its own pattern-matching source code into the output. This is win64 version 3.21 on Windows 7; I just updated it this morning.)

I figured out how to do what I need to do without multi-line mode, so I don't need an answer right now. But this =~ might be a bug.

Last edited by Shagbark; 04-11-2018 at 03:33 PM.
Shagbark is offline   Reply With Quote