/**不区分大小写的替换**/
    public  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;
   }
	
posted on 2007-12-14 10:37 
crazy 阅读(2477) 
评论(1)  编辑  收藏  所属分类: 
java