【发布时间】:2016-09-20 10:44:48
【问题描述】:
1) 首先我想搜索带有诸如
之类的模式的文本 app(abs(something),abs(something))
在使用 Notepad++ 的大文本中,文本示例如下所示:
app(abs(any length of characters here),abs(any length of characters here)),
tapp(abs(any length of characters here),abs(any length of characters here)),
app(abs(any length of characters here),app(any length of characters here)),
app(abs(any length of characters here),some(any length of characters here)),
app(abs(any length of characters here)) ,abs(any length of characters here))
当我使用 "app(abs((.?)),abs((.?)))" 进行搜索时,它会在上面的示例中找到第一行和第二行。 第二行不是我要搜索的。 我的表达有什么问题?
2)如果可能的话,我希望每个“abs”之后的开闭括号()应该匹配,例如
"app( abs(..(..)..),abs(..(..(...)..)..) )"
但不像
"app(abs((), abs())"
第一个 abs 有不匹配的括号。
请给点建议!
提前致谢
【问题讨论】:
标签: regex notepad++ text-editor