正则表达式中括号的多义性
摘要:中括号在正则中称为字符组(Character class),有的书翻译为字符类,还有的翻译成字符集。我觉得字符组更好点,毕竟class在计算机属于中代表面向对象里的“类”。顾名思义,字符组为一组字符,它表示在一个位置里可能出现的多种字符。注意这里强调只匹配一个位置哦。简单字符组范围字符组组合字符组排...
阅读全文
posted @ 2014-04-14 08:01
If you cannot hear the sound of the genuine in you, you will all of your life spend your days on the ends of strings that somebody else pulls.
posted @ 2014-04-14 08:01
posted @ 2014-04-08 07:09
posted @ 2012-11-13 13:44