]> granicus.if.org Git - onig/commitdiff
update doc/RE
authorK.Kosako <kkosako0@gmail.com>
Sun, 30 Jul 2017 01:32:32 +0000 (10:32 +0900)
committerK.Kosako <kkosako0@gmail.com>
Sun, 30 Jul 2017 01:32:32 +0000 (10:32 +0900)
doc/RE
doc/RE.ja

diff --git a/doc/RE b/doc/RE
index 9e4a0480d99959d2fc0fe44c98eb70bf79b847b0..2f47fbc901163502af3e0e31facefe2ccfe1ae0f 100644 (file)
--- a/doc/RE
+++ b/doc/RE
@@ -1,4 +1,4 @@
-Oniguruma Regular Expressions Version 6.5.0    2017/07/23
+Oniguruma Regular Expressions Version 6.5.0    2017/07/30
 
 syntax: ONIG_SYNTAX_RUBY (default)
 
@@ -249,7 +249,7 @@ syntax: ONIG_SYNTAX_RUBY (default)
                      This is a written abbreviation of (?~|absent|\O*).
                      \O* is used as a repeater.
 
-  (?~|absent|exp)    Absent group  (* original)
+  (?~|absent|exp)    Absent expression  (* original)
                      This works like "exp", but it is limited by the range
                      that does not include the string match with absent.
 
@@ -260,7 +260,7 @@ syntax: ONIG_SYNTAX_RUBY (default)
                      at the point that does not include the string match whth
                      absent.
 
-     * Nested absent repeater/group is not supported and the behavior
+     * Nested absent functions are not supported and the behavior
        is undefined.
 
 
index 66f7ace098cbf048bb12f5ba170514735b145ae5..41baf6fbd9c0ebf96040f0d0459ab28f002e525c 100644 (file)
--- a/doc/RE.ja
+++ b/doc/RE.ja
@@ -1,4 +1,4 @@
-鬼車 正規表現 Version 6.5.0    2017/07/19
+鬼車 正規表現 Version 6.5.0    2017/07/30
 
 使用文法: ONIG_SYNTAX_RUBY (既定値)
 
                     この場合には、この名前を使用した後方参照は可能であるが、
                     部分式呼出しはできない。
 
-  (?~不在式)        不在式集合     (* 原案 田中哲)
-                    これは.*のように(より正確には\O*)動作するが、不在式に適合する
-                    文字列を含まない範囲に制限される。
-                    \O*が既定の生成子として使用される。
-                    そのため、マルチラインオプション(?m)の影響は受けない。
+  <不在機能群>
 
-                    不在式が長さ0でマッチングする可能性があれば、常に失敗する。
-                    (返せる文字列範囲が存在しないので、これは正当な動作である)
+  (?~不在式)        不在繰り返し  (*原案 田中哲)
+                    これは.*のように(より正確には\O*)動作するが、不在式に
+                    適合する文字列を含まない範囲に制限される。
+                    これは(?~|不在式|\O*)の省略表記である。
+                    \O*の部分はマルチラインオプション(?m)の影響を受けない。
 
-  (?~|生成子|不在式)    生成子付き不在式集合  (* 原作)
-                        生成子は貪欲あるいは強欲な量指定子でなければならない。
+  (?~|不在式|式)    不在式  (* 原作)
+                    これは"式"のように動作するが、不在式に適合する文字列を
+                    含まない範囲に制限される。
 
-                        例. (?~|\d*|345)
-                            (?~|(?:abc|de|f){2,100}|def)
+                    例 (?~|345|\d*)  "12345678"  ==> "12", "1", ""
+
+  (?~|不在式)       不在切断 (* 原作)
+                    この演算子を通過した後は、対象文字列の適合範囲の最後が
+                    不在式に適合する文字列を含まない範囲に制限される。
+
+     * 不在機能の入れ子はサポートしておらず、挙動は不定とする。
 
 
   (?(条件式)成功式|失敗式)    条件式が成功すれば成功式、失敗すれば失敗式を実行する