我是一个相当缺乏经验的 Notepad++ 用户,我实际上只是复制粘贴此处发布的不同正则表达式查询 - 以清理游戏服务器日志等内容。现在我发现了一个通过 Stackoverflow 研究无法解决的问题。
我想删除每行末尾的最后一个字母(符号),但前提是它是“!” 长话短说,我想要一个正则表达式查询,可以让我摆脱这样的事情:
Jedi=Knight=Virdu: Hello everyone.!
Jedi=Master=Yvan: <bows his head, barely keeping his eyes open, like he is about to fall asleep>!
Padawan=Acodin has joined the spectators.
Padawan=Vic has defeated: Training Droid [NPC].
Jedi=Knight=Rus: Is something wrong, Master Yvan?!
并将其转换为:
Jedi=Knight=Virdu: Hello everyone.
Jedi=Master=Yvan: <bows his head, barely keeping his eyes open, like he is about to fall asleep>
Padawan=Acodin has joined the spectators.
Padawan=Vic has defeated: Training Droid [NPC].
Jedi=Knight=Rus: Is something wrong, Master Yvan?
提前感谢您的帮助!