1. 程式人生 > >eclipse使用技巧---使用正則表示式查詢替換【反編譯後替換/* */】

eclipse使用技巧---使用正則表示式查詢替換【反編譯後替換/* */】

1,Eclipse ctrl+f 開啟查詢框
2,選中 Regular expressions (正則表示式)

去掉/* */(eclipse)        /\*(.|[\r\n])*?\*/
去掉//(eclipse)             //.*$
去掉import(eclipse)     import.*$
去掉空行(eclipse)         ^\s*\n
去掉空行(ue)               %[ ^t]++^p