ecplise 正则替换技巧

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

猜你喜欢

转载自www.cnblogs.com/ooo0/p/9124795.html