张志峰的博客

水滴石川,积少成多。

导航

随笔分类 -  java 正则表达式

摘要:import java.util.regex.Matcher;import java.util.regex.Pattern;public class Main { public static void main(String[] args) throws Exception { String str... 阅读全文

posted @ 2015-06-17 16:50 ╰★张志峰★╮ 阅读(1297) 评论(0) 推荐(0)

摘要:Pattern.compile函数:Pattern Pattern.compile(String regex, int flag)flag的取值范围如下:Pattern.CANON_EQ,当且仅当两个字符的"正规分解(canonical decomposition)"都完全相同的情况下,才认定匹配。... 阅读全文

posted @ 2015-06-17 16:47 ╰★张志峰★╮ 阅读(1704) 评论(0) 推荐(0)