利用EmEditor快速对网络收集的文章排序
①无空行,段首缩进
document.selection.Replace("^[ ]+","",eeFindNext | eeReplaceAll | eeFindReplaceRegExp);
document.selection.Replace("^[ \t]*\\n","",eeFindNext | eeReplaceAll | eeFindReplaceRegExp);
document.selection.Replace("[ ]+$","",eeFindNext | eeReplaceAll | eeFindReplaceRegExp);
document.selection.Replace("^[\\t]+","",eeFindNext | eeReplaceAll | eeFindReplaceRegExp);
document.selection.Replace("^([^ 《])"," \\1",eeFindNext | eeReplaceAll | eeFindReplaceRegExp);
document.selection.Replace("^\\n\\n(第[0-9一二三四五六七八九十两百零〇]{1,5}[册集部卷章节回].*)\\n\\n\\n","\\1\\n",eeFindNext | eeReplaceAll | eeFindReplaceRegExp);
document.selection.Replace("^\\n\\n","【标记】",eeFindNext | eeReplaceAll | eeFindReplaceRegExp);
document.selection.Replace("^\\n","",eeFindNext | eeReplaceAll | eeFindReplaceRegExp);
document.selection.Replace("【标记】\\n","【标记】",eeFindNext | eeReplaceAll | eeFindReplaceRegExp);
document.selection.Replace("(【标记】)+","【标记】",eeFindNext | eeReplaceAll | eeFindReplaceRegExp);
document.selection.Replace("【标记】","\\n\\n\\n",eeFindNext | eeReplaceAll | eeFindReplaceRegExp);
document.selection.Replace("^\\n\\n\\n","\\n\\n",eeFindNext | eeReplaceAll | eeFindReplaceRegExp);
document.selection.Replace("^ <img src=../txt/","<img src=../txt/",eeFindNext | eeReplaceAll | eeFindReplaceRegExp);
//document.selection.Replace("^\\n\\n[ ]+([《第正作序楔引前后上0-9一二三四五六七八九十两百零〇])","\\n\\n\\1",eeFindNext | eeReplaceAll | eeFindReplaceRegExp);
//document.selection.Replace("^\\n\\n[ ]+([^ ]+第[0-9一二三四五六七八九十两百零〇]{1,5}[册集部卷章节回])","\\n\\n\\1",eeFindNext | eeReplaceAll | eeFindReplaceRegExp);
网友评论