Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在各种文件中有一些不同的字符串,比如
"a.x" "a.y"
在eclipse的一个项目中。所有人"a.之间的共同点。我想知道是否可以搜索 "a.*"并替换为a.*
"a.
"a.*"
a.*
所以基本上它变成了
前
后
a.x a.y
您需要使用捕获组,我相信在 Eclipse 中您可以使用$1第一个捕获组。所以这应该工作:
$1
搜索:"a\.(.+)"
"a\.(.+)"
代替:a.$1
a.$1