【发布时间】:2012-02-22 15:53:43
【问题描述】:
我有很多行开头如下:
text.1
text.2
othertext.21
anothertext.50
dfgtext.161
我需要的是找到只有 .1(不是 .21,不是 11),只有 anytext.1 的行
我用记事本++
谢谢,
【问题讨论】:
标签: regex search find notepad++
我有很多行开头如下:
text.1
text.2
othertext.21
anothertext.50
dfgtext.161
我需要的是找到只有 .1(不是 .21,不是 11),只有 anytext.1 的行
我用记事本++
谢谢,
【问题讨论】:
标签: regex search find notepad++
你只需要匹配行尾,所以试试\.1$
【讨论】:
如果是任何文本 + .1,请尝试以下正则表达式
.+?\.1$
【讨论】:
假设 Notepad++ 支持$,行尾匹配,\.1$ 应该适合你。
【讨论】: