Chan Chen Coding...

正则中的括号

()是捕获组用 也就是标记对应的group(i)
[]算是一种集合 如 [0-9]表示0到9中任一数字
{}次数中用到 如 x{1,5} x出现至少1次 最多5次

-----------------------------------------------------
Silence, the way to avoid many problems;
Smile, the way to solve many problems;

posted on 2012-04-26 10:41 Chan Chen 阅读(156) 评论(0)  编辑  收藏 所属分类: Linux


只有注册用户登录后才能发表评论。


网站导航: