标签:
/** 
  * java实现不区分大小写替换 
  * @param source 
  * @param oldstring 
  * @param newstring 
  * @return 
  */ 
public static String IgnoreCaseReplace(String source, String oldstring, 
   String newstring){ 
      Pattern p = Pattern.compile(oldstring, Pattern.CASE_INSENSITIVE); 
      Matcher m = p.matcher(source); 
      String ret=m.replaceAll(newstring); 
      return ret; 
} 
标签:
原文地址:http://www.cnblogs.com/wk022/p/4226858.html