摘要: import java.util.regex.Matcher;import java.util.regex.Pattern;//正则表达式替换字符方法public class PatternReplaceExmple{ private static Pattern p ; private static Matcher m ; //str为要匹配的字符格式 public static void setPattern(String str){ p = Pattern.compile(str); } public static void setPattern(String str,... 阅读全文
posted @ 2009-12-25 16:59 Spring MVC 3 阅读(697) 评论(0) 推荐(0) 编辑