谁知道chm电子书反编成txt文件中的一大串字母怎么去掉啊

2025-03-05 05:32:11
推荐回答(2个)
回答1:

  反编电子书得到的TXT文本.用排版批量删除.因为脚本要用到正则表达式而本人不会.使用找人帮忙了

  1 document.write("

  2

");
  3 document.write ('
  4

')document.write("

  5


  6 1-0
  7 1'>
  8 第前隔2行
  如

第二卷 巫、道相争成主角,一朝兴盛一朝衰

  换成


  第二卷 巫、道相争成主角,一朝兴盛一朝衰

  一共8个.要替换删很麻烦.所以希望能转化成正则表达式或者做成排版脚本也可以.

  部分脚本例子

  411: //起点1
  document.selection.Replace("^\\n","",nFlags);
  document.selection.Replace("^ (.+)\\n \\(起.+更新时间:.+","\\n\\n\\1",nFlags);
  document.selection.Replace("^ \\[.+/ www.cmfu.com 起点中文网作品全文阅读 PDA版\\]\\n\\n\\n","",nFlags);
  document.selection.Replace("好书尽在www.cmfu.com","",nFlags);
  document.selection.Replace(" 起.+授权发布\\n","",nFlags);
  document.selection.Replace(" 本书正在连载中,最新的章节请看起点中文网主站.+\\n","",nFlags);
  document.selection.Replace(" Copyright \\(C\\) 2002-2003.+\\n.+\\n.+\\n.+\\n","",nFlags);
  document.selection.Replace(" .*点击察看图片链接.+\\n","",nFlags);
  document.selection.Replace("^[ ]+\\n","",nFlags);
  bAnswer = confirm("是否更改换行为CR+LF(Windows)?\n(hP电子书制作软件只支持此换行)");
  if (bAnswer==true) editor.ExecuteCommandByID( 4105 );
  break;

  我就是需要将上面的8个用转化成正则表达.再套进脚本里可以实现批量完正.不用手动这么麻烦.
  问题补充:
  简单的说就是要写个排版脚本将这些东西批量删除

回答2:

What are all these kissings worth,

If thou kiss not me