【发布时间】:2015-10-30 13:42:52
【问题描述】:
我有一个包含许多自动生成方法的测试类,如下所示:
public void testInitBinder() throws Exception { }
public void testGetAllMetaLabelTbls() throws Exception { }
public void testList() throws Exception { }
public void testEdit() throws Exception { }
我想删除方法名称中的“test”一词,但让方法名称正确地以小写开头。例如testInitBinder 将变为initBinder。
注意,这只是一个示例。我想知道如何在此特定情况之外的其他情况下进行这种类型的查找/替换。 (告诉我如何在没有前缀“test”的情况下自动生成不会回答这个问题。)
【问题讨论】:
标签: regex intellij-idea replace find