标签:div bsp eal str string print -- class list
// String ret = "<signature>aaa</signature>".replaceAll("[[\\s\\S]*<signature>([\\s\\S]*)</signature>[\\s\\S]*]","\"signature\":\"$1\""); // String ret = "<signature>aaa</signature>".replaceAll("[\\s\\S]*<signature>([\\s\\S]*)</signature>[\\s\\S]*","signature:$1,$1"); // System.out.println(ret); // System.out.println("--axayazacbdbxbybz--".replaceAll("[\\s\\S]*a(\\w)b(\\w)[\\s\\S]*", "$1$2")); //bbcc // System.out.println("--axbycz--".replaceAll(".*a(\\w).*|.*c(\\w).*", "$1$2")); //bbcc // System.out.println("--<a>1</a>pp<b>2</b>pp<c>3</c>--".replaceAll(".*<a>(.*)</a>|.*<b>(.*)</b>|.*<c>(.*)</c>.*", "$1$2")); //bbcc System.out.println("--<a>1</a>pp<b>2</b>pp<c>3</c>yy <list><b>4<b></list>--".replaceAll("<a>(.*)</a>|<b>(.*)</b>|<c>(.*)</c>", "$1$2$3")); //bbcc
标签:div bsp eal str string print -- class list
原文地址:http://www.cnblogs.com/bobo1713930654/p/6669499.html