0

我正在尝试在 IBM RAD / eclipse 中使用正则表达式来搜索和替换特定匹配 crieria 的整个代码库/Java Web 项目(jsp,java)。

我想做的是,我正在寻找

method(string, string)

并将其替换为

method(string, string, string) // adding additional argument.

例如:

method("Employee", "Language")
method("Customer", "Lang");

我想全部更换method(*,*,"TOKEN");

我已经搜索method(*,*)并返回了所有内容,但是在尝试替换method(*, *, TOKEN)时,它被替换为“*”......任何帮助......对正则表达式不太熟悉......已经搜索了很多线程并且仍在搜索......任何帮助都会太好了。。谢谢

4

1 回答 1

1

if you select the methodname e.g:

public void getAngle(){..}

and you select ´getAngle()´ and press ´alt+shift+c´ , you should be able to modify the method signature

于 2013-05-07T23:54:37.890 回答