我在Notepad ++中有200多行,我想标记包含两倍字符“。”的所有行,指向。
例如:
test.com
test.co.uk [MARK]
test.net
感谢。
答案 0 :(得分:1)
答案 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