ctrl+f :

ctrl+h:

例:
替换
(String)object1.getAttribute("X")
(String)object2.getAttribute("Y")
(String)objectN.getAttribute("Z")
成
getSafeStringAttribute(object1,"X") getSafeStringAttribute(object2,"Y") getSafeStringAttribute(objectN,"Z")

附录:



参考:https://www.cnblogs.com/shangdawei/p/4663134.html
http://www.runoob.com/java/java-regular-expressions.html