Eclipse正则表达式 替换查找 /* */ 注释

   最近几天用jd-gui反编译了一个springMVC的项目,反编译出来的java文件全部带注释,看着有点不舒服。 
网上找了解决方法: 
用Eclipse 正则表达式查找替换 非常方便。 

1,Eclipse ctrl+f 打开查找框 
2,选中 Regular expressions (正则表达式) 

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

猜你喜欢

转载自shaoqunxi.iteye.com/blog/1601685