System.out.println\\("me"\\);
应该就能够匹配到

解决方案 »

  1.   

    哦,我可能没说清楚。
    正则匹配的目的是:找出所有的未注释的、不在main()方法内的System.out.print方法
      

  2.   

    不好办,你如果要找main方法中的System.out.print倒还有办法
      

  3.   

    int i=0;
    整段代码搜索*System.out.print*
    i++;
    System.out.println(i-main中的System.out.print方法的个数)
    行吗?
      

  4.   

    LBritney的方法是用来计算个数,有作用。
    但是不能使文本定位到某个文件的某一行
    看来够呛了,3ks all the samesilverghost2002 老兄说的我全不懂:< 暂不给分 ,请谅解