【发布时间】:2015-05-21 23:57:21
【问题描述】:
我有一个 html 菜单文件,其中包含 html 页面列表,由 chm 解码器提取。
(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++ 制作这个吗?
【问题讨论】:
标签: html regex notepad++ calibre