已添加书签的行:
(All Bookmarked Lines Have This), (This Is Different Each Line), (I Want To Delete This)
我正在尝试删除字符串“(我想删除此内容)”仅用于添加书签的行。
Real Bookmarked Lines:
plugin command("plugin.dll", "local dictionary add", "usertemp", $list item(%details, 2), "Local")
plugin command("plugin.dll", "local dictionary add", "passtemp", $list item(%details, 3), "Local")
需要让他们:
plugin command("plugin.dll", "local dictionary add", "usertemp", $list item(%details, 2))
plugin command("plugin.dll", "local dictionary add", "passtemp", $list item(%details, 3))
答案 0 :(得分:0)
搜索和替换,搜索模式正则表达式。
找到:,[^,]*?\)$
替换为:\)
运行一次全部替换
如果(我想删除此内容)始终为, "Local"
,您可以使用查找内容:, "Local"\)$
。我上面的例子匹配并删除了最后一个"参数"来自每个括号多个参数