我有一个HTML菜单文件,其中包含通过chm解码器提取的HTML页面列表。
(7,0,"Icons Used in This Book","final/pref04.html");
(8,0,"Command Syntax Conventions","final/pref05.html");
(9,0,"Introduction","final/pref06.html");
(10,0,"Part I: Introduction and Overview of Service","final/part01.html");
(11,10,"Chapter 1. Overview","final/ch01.html");
(12,11,"Technology Motivation","final/ch01lev1sec1.html");
我希望您能帮助我创建一个“目录”文件,用于Calibre(HTML文件,包含按照所需顺序链接到所有其他文件的链接)。最终文件应该类似于这样:
<a href="final/pref04.html">Icons Used in This Book</a><br/>
<a href="final/pref05.html">Command Syntax Conventions</a><br/>
.
.
.
首先,我需要使用正则表达式删除数字前缀,然后添加a href
属性以创建超链接,并更改URL和标题的位置。有人可以展示如何在Notepad++中实现这个吗?