Thread
:
Can we run Function mode in Search & replace during the conversion process?
View Single Post
02-06-2020, 09:26 PM
#
2
kovidgoyal
creator of calibre
Posts: 45,402
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No function mode and the editor were created long after conversion. But given your function is so simple you can do it with just plain regular expressions
Code:
<li(.*?)>\s*<p.*?>(.+?)</p>\s*</li> and replace with <li\1>\2</li>
kovidgoyal
View Public Profile
Visit kovidgoyal's homepage!
Find More Posts by kovidgoyal
Track Posts by kovidgoyal via RSS