隨筆 - 53, 文章 - 0, 評論 - 3, 引用 - 0
          數據加載中……

          summary of regular expression grammar

          There are not too much grammar. here is just the incomplete summary for the future reference.
          meta-character
          .                                any character
          |                                or
          ()                                grouping
          []                                character class
          [^]                                negative character class

          Greedy Quantifier
          ?                                optional
          *                                any amount
          +                                at least one
          lazy quantifier
          ??                               
          *?
          +?
          possessing quantifier
          ?+
          *+
          ++

          position related
          ^                                start ot the line
          \A                               
          $                                end of the line
          \Z
          \<                                start of the word
          \>                                end of the word
          \b                                start or end of the word

          non-capturing group                (?:Expression)
          non-capturing atomic group        (?>Expression)
          positive lookahead                (?=Expression)
          negative lookahead                (?!Expression)
          positive lookbehind                (?<=Expression)
          negative lookbehind             (?<!Expression)

          \Q start quoting
          \E end quoting

          mode modifier
          (?modifier)Expression(?-modifier)
          valid modifier
          i            case insensitive match mode
          x             free spacing
          s            dot matches all match mode
          m            enhanced line-anchor match mode
          (?modifier:Expression)

          comments:
          (?#Comments)



          posted on 2008-07-16 17:06 InPractice 閱讀(81) 評論(0)  編輯  收藏


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 淮安市| 贡觉县| 武功县| 安康市| 章丘市| 时尚| 延吉市| 台山市| 达日县| 博野县| 龙井市| 新余市| 邵阳县| 安化县| 瑞金市| 临泉县| 深泽县| 永宁县| 韶关市| 平乐县| 阿尔山市| 陈巴尔虎旗| 阳谷县| 凤阳县| 洛扎县| 博爱县| 格尔木市| 达孜县| 闻喜县| 香格里拉县| 英山县| 子洲县| 邹城市| 丹棱县| 扎鲁特旗| 淮滨县| 年辖:市辖区| 德安县| 抚州市| 郯城县| 桐庐县|