【问题标题】:add footer to multiple files为多个文件添加页脚
【发布时间】:2016-09-15 16:36:09
【问题描述】:

我有一堆以 .txt 格式保存的平面文件。我想在每个文件中添加相同的页脚。如下

1st line text in file 1 2nd line text in file 1 footer 1st line in file 2 2nd line in file 2 footer
我可以在记事本++中试试这个
search: ^ replace: Header\n
但结果
1st line text in file 1 footer 2nd line text in file 1 footer 1st line in file 2 footer 2nd line in file 2 footer
我只希望页脚在文件的最后一行下方出现一次。
任何帮助将不胜感激

【问题讨论】:

  • 您要添加页眉还是页脚?

标签: notepad++ text-editor flat-file


【解决方案1】:

查找:

(.*)\K

替换:

THIS IS THE FOOTER

请务必检查 。匹配搜索模式框中的换行符框(以及选择正则表达式)。

【讨论】:

    猜你喜欢
    • 2021-07-21
    • 2013-03-09
    • 1970-01-01
    • 2015-04-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-05-09
    • 1970-01-01
    相关资源
    最近更新 更多