【问题标题】:How do I Replace all at end of Line in Notepad++?如何在记事本++中替换所有行尾?
【发布时间】:2021-06-14 20:27:28
【问题描述】:

在 Notepad++ 中,我可以通过使用正则表达式模式按 Ctrl+H 并将“\d+”替换为“Double”来将“Double”添加到列表中的所有变量。

现在我想添加一个“;”到每一行的末尾。我该怎么做?

Double Harness Infinity
Double Hofri Ghostforge
Double Humiliate
Double Infuse with Vitality
Double Inkling Summoning
Double Kasmina, Enigma Sage
Double Killian, Ink Duelist
Double Lorehold Apprentice
Double Lorehold Command
Double Lorehold Excavation
Double Lorehold Pledgemage
Double Maelstrom Muse
Double Magma Opus
Double Make Your Mark
Double Manifestation Sage
Double Moldering Karok
Double Mortality Spear
Double Needlethorn Drake
Double Oggyar Battle-Seer
Double Owlin Shieldmage
Double Pest Summoning
Double Practical Research

【问题讨论】:

  • 查找\n替换为\n;

标签: notepad++


【解决方案1】:

尝试搜索 \r\n\r\n 并将其替换为相应的字符 + ;。这取决于您使用的系统,但其中之一应该可以工作。 \r 代表回车符(回车键),\n 代表换行符。

【讨论】:

    【解决方案2】:
    • Ctrl+H
    • 查找内容:$
    • 替换为:;
    • 检查 环绕
    • CHECK 正则表达式
    • 全部替换

    说明:

    $       # end of line
    

    截图:

    【讨论】:

      猜你喜欢
      • 2010-09-29
      • 1970-01-01
      • 1970-01-01
      • 2016-10-07
      • 1970-01-01
      • 1970-01-01
      • 2017-08-22
      • 2017-08-09
      • 1970-01-01
      相关资源
      最近更新 更多