使用 Notepad++ 删除 : 之后短于或等于 5 个字符的行 [英] Remove lines that is shorter than or equal 5 characters after the : using Notepad++

查看:91
本文介绍了使用 Notepad++ 删除 : 之后短于或等于 5 个字符的行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题是这样的:使用 Notepad++ 删除 @ 前少于 5 个字符的行

但它有点不同......

But it differs a bit...

我喜欢这样:

abc:123

abc:1234

abc:12345

请注意:abc 并不是所有的行,它只是一个例子.

PLEASE NOTE: abc is not on all the lines, it is just an example.

我想删除前面例子中的 first 行,因为 : 之后的 123 短于或不等于 5 个字符.

I want to remove the first line in the previous example because 123 which is after : is shorter than or not equal to 5 characters.

任何帮助将不胜感激.

谢谢!

推荐答案

Open Notepad++ find and replace 在搜索中选择regex模式并放置^((?!.+:\d{5,}).)*$ 并保持替换为空白,然后按replaceAll

Open Notepad++ find and replace choose regex mode in the search and place ^((?!.+:\d{5,}).)*$ in search and keep replace with blank and press replaceAll

^((?!.+:\d{5,}).)*$

^((?!.+:\d{5,}).)*$

这篇关于使用 Notepad++ 删除 : 之后短于或等于 5 个字符的行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆