[英]how to mass delete with regex
I have a lot of incoming emails and I want to save all in notepad 我有很多收到的电子邮件,我想全部保存在记事本中
checkzone@anagram
12:56 AM (7 hours ago)
to me
Live => example1@gmail.com | example1
checkzone@anagram
6:31 AM (2 hours ago)
to me
Live => example2@gmail.com | example2
checkzone@anagram
6:31 AM (1 hours ago)
to me
Live => example3@gmail.com | example3
so it becomes like this 所以变成这样
Live => example1@gmail.com | example1
Live => example2@gmail.com | example2
Live => example3@gmail.com | example3
how to delete all 如何全部删除
checkzone@anagram
6:31 AM (1 hours ago)
to me
with regex! 与正则表达式!
question What code should be used when using regex? 问题使用正则表达式时应使用什么代码? please with demo regex101 请与演示regex101一起使用
You can use a regex like this: 您可以使用以下正则表达式:
[\s\S]*?(Live.*$)
With the replacement string: 用替换字符串:
$1\n
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.