]> granicus.if.org Git - onig/commitdiff
small update doc/RE
authorK.Kosako <kosako@sofnec.co.jp>
Thu, 26 Jul 2018 05:57:50 +0000 (14:57 +0900)
committerK.Kosako <kosako@sofnec.co.jp>
Thu, 26 Jul 2018 05:57:50 +0000 (14:57 +0900)
doc/RE
doc/RE.ja

diff --git a/doc/RE b/doc/RE
index 9ff76282268d4a28874c359bf9509226303577bb..963d0092f4bb1c99035be4d5a9b02712c09309fc 100644 (file)
--- a/doc/RE
+++ b/doc/RE
@@ -1,4 +1,4 @@
-Oniguruma Regular Expressions Version 6.8.0    2018/06/08
+Oniguruma Regular Expressions Version 6.8.0    2018/07/26
 
 syntax: ONIG_SYNTAX_ONIGURUMA (default)
 
@@ -221,7 +221,8 @@ syntax: ONIG_SYNTAX_ONIGURUMA (default)
 
   (?#...)            comment
 
-  (?imxWDSP-imxWDSP)         option on/off
+  (?imxWDSP-imxWDSP:subexp)  option on/off for subexp
+
                                i: ignore case
                                m: multi-line (dot (.) also matches newline)
                                x: extended form
@@ -233,7 +234,11 @@ syntax: ONIG_SYNTAX_ONIGURUMA (default)
                                   (alnum, alpha, blank, cntrl, digit, graph,
                                    lower, print, punct, space, upper, xdigit, word)
 
-  (?imxWDSP-imxWDSP:subexp)  option on/off for subexp
+  (?imxWDSP-imxWDSP)  isolated option
+
+                      * It makes a group to the next ')' or end of the pattern.
+                        /ab(?i)c|def|gh/ == /ab(?i:c|def|gh)/
+
 
   (?:subexp)         non-capturing group
   (subexp)           capturing group
index f6ffc313cfad1fa8d411f1852f64177be00a6b9f..a83bfb450c7f71bdf48c5745fd28434cece275f9 100644 (file)
--- a/doc/RE.ja
+++ b/doc/RE.ja
@@ -1,4 +1,4 @@
-鬼車 正規表現 Version 6.8.0    2018/06/08
+鬼車 正規表現 Version 6.8.0    2018/07/26
 
 使用文法: ONIG_SYNTAX_ONIGURUMA (既定値)
 
 7. 拡張式集合
 
   (?#...)           注釈
-  (?imxWDSP-imxWDSP)      孤立オプション
+
+  (?imxWDSP-imxWDSP:式)   式オプション
+
                             i: 大文字小文字照合
                             m: 複数行
                             x: 拡張形式
                                (alnum, alpha, blank, cntrl, digit, graph,
                                 lower, print, punct, space, upper, xdigit, word)
 
-  (?imxWDSP-imxWDSP:式)   式オプション
+  (?imxWDSP-imxWDSP)  孤立オプション
+
+                      * これは次の')'またはパターンの終わりまでのグループを形成する
+                        /ab(?i)c|def|gh/ == /ab(?i:c|def|gh)/
+
 
   (式)              捕獲式集合
   (?:式)            非捕獲式集合