简体   繁体   English

我需要在Notepad ++中搜索不以','结尾的行

[英]I need to search in Notepad++ for lines not ending with ','

for example: 例如:

text.log file:
123,
4312421
53423543,
5643645,

Will only return/replace the 4312421 with 4312421, 只会将4312421返回/替换为4312421,

I need to fix many files that are old and not ending with ',' 我需要修复许多不以','结尾的旧文件

at the end of some lines. 在某些行的末尾。

Replace using a lookbehind in regex mode: 在正则表达式模式下使用后向替换:

Find: 找:

(?<!,)$

Replace: 更换:

, [just a single comma]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM