删除包含两次字符的所有行

时间:2017-09-17 03:22:58

标签: notepad++

我在Notepad ++中有200多行,我想标记包含两倍字符“。”的所有行,指向。

例如:

test.com
test.co.uk [MARK]
test.net

感谢。

2 个答案:

答案 0 :(得分:1)

您可以使用此正则表达式模式:^.*\..*\..*$

Find the line that contains dot character 2 times

答案 1 :(得分:0)

这就是工作:

  • 找到:^(?:[^.\r\n]*\.){2,}.*$

<强>解释

^               : beginning of line
  (?:           : start non capture group
    [^.\r\n]*   : 0 or more any character that is not a dot or a linebreak
    \.          : a dot
  ){2,}         : end group, must appear at least twice
  .*            : 0 or more any character
$               : end of line