我正在尝试删除 sublime 中除电子邮件之外的所有字符串。
所以我可以寻找这样的电子邮件
[a-zA-Z0-9.!#$%&'+-/=?\^_`{|}~-]+@[a-zA-Z0-9-]+(?:.[\.a-zA-Z0-9-]+)
但我该如何删除其他所有内容呢?
Thanks
您可以执行以下操作:
- Use your regex to find all emails, click Find All to select all emails
- Go to
Selection
然后单击Invert Selection
- Press Enter to add line breaks between the found emails. Or, press , or any other key to insert anything to delimit found matches.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)