如何从包含电子邮件:密码的文本文件中删除密码?
例如我有:
[email protected]:1241_1130
[email protected]:k8795530
[email protected]:nakamura
[email protected]:legeres18
[email protected]:shorty01
[email protected]:Symbian3G
[email protected]:decky21
我想要得到以下结果:
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
答案1
我怎样才能删除密码?
菜单“搜索”>“替换”(或Ctrl+ H)
将“查找内容”设置为
(.*):.*
将“替换为”设置为
\1
启用“正则表达式”
点击“全部替换”
[email protected]:1241_1130
[email protected]:k8795530
[email protected]:nakamura
[email protected]:legeres18
[email protected]:shorty01
[email protected]:Symbian3G
[email protected]:decky21
后:
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
进一步阅读
答案2
- CTRL + H -> 将打开替换窗口
- 类型:.*在‘查找内容’字段中。
- 在‘搜索模式’中选择‘正则表达式’。
- 单击“全部替换”按钮。