如何删除记事本++中具有特定字符的行?
How to remove a line in notepad++ that has a specific character in it?
是否可以删除 notepad++ 文档中包含特定字符的每一行?例如,在我的文档中我有这样的东西:
test1@gmail.com:cool
cool:cool
test2@yahoo.com:cool
我想删除所有包含字符“@”的行,所以之后看起来就像这样:
cool:cool
在查找和替换中,正则表达式模式:
查找:^.*@.*$(\r\n)?
替换为:
输出:
cool:cool
是的。
Regex: Remove lines containing
搜索 > 查找 > 标记
在 "Find what" 文本字段中,输入“@”
选中 "Bookmark line" 和 "Wrap around" 复选框
全部标记
现在 select 搜索 > 书签 > 删除书签行"
是否可以删除 notepad++ 文档中包含特定字符的每一行?例如,在我的文档中我有这样的东西:
test1@gmail.com:cool
cool:cool
test2@yahoo.com:cool
我想删除所有包含字符“@”的行,所以之后看起来就像这样:
cool:cool
在查找和替换中,正则表达式模式:
查找:^.*@.*$(\r\n)?
替换为:
输出:
cool:cool
是的。
Regex: Remove lines containing
搜索 > 查找 > 标记
在 "Find what" 文本字段中,输入“@”
选中 "Bookmark line" 和 "Wrap around" 复选框
全部标记
现在 select 搜索 > 书签 > 删除书签行"