摘要:
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,... 阅读全文