From: K.Kosako Date: Sun, 30 Jul 2017 01:32:32 +0000 (+0900) Subject: update doc/RE X-Git-Tag: v6.5.0^2~24 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e0d37907ebb3c9bb096d7c8355feec0484fb2cf4;p=onig update doc/RE --- diff --git a/doc/RE b/doc/RE index 9e4a048..2f47fbc 100644 --- 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. diff --git a/doc/RE.ja b/doc/RE.ja index 66f7ace..41baf6f 100644 --- 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 (既定値) @@ -242,20 +242,25 @@ この場合には、この名前を使用した後方参照は可能であるが、 部分式呼出しはできない。 - (?~不在式) 不在式集合 (* 原案 田中哲) - これは.*のように(より正確には\O*)動作するが、不在式に適合する - 文字列を含まない範囲に制限される。 - \O*が既定の生成子として使用される。 - そのため、マルチラインオプション(?m)の影響は受けない。 + <不在機能群> - 不在式が長さ0でマッチングする可能性があれば、常に失敗する。 - (返せる文字列範囲が存在しないので、これは正当な動作である) + (?~不在式) 不在繰り返し (*原案 田中哲) + これは.*のように(より正確には\O*)動作するが、不在式に + 適合する文字列を含まない範囲に制限される。 + これは(?~|不在式|\O*)の省略表記である。 + \O*の部分はマルチラインオプション(?m)の影響を受けない。 - (?~|生成子|不在式) 生成子付き不在式集合 (* 原作) - 生成子は貪欲あるいは強欲な量指定子でなければならない。 + (?~|不在式|式) 不在式 (* 原作) + これは"式"のように動作するが、不在式に適合する文字列を + 含まない範囲に制限される。 - 例. (?~|\d*|345) - (?~|(?:abc|de|f){2,100}|def) + 例 (?~|345|\d*) "12345678" ==> "12", "1", "" + + (?~|不在式) 不在切断 (* 原作) + この演算子を通過した後は、対象文字列の適合範囲の最後が + 不在式に適合する文字列を含まない範囲に制限される。 + + * 不在機能の入れ子はサポートしておらず、挙動は不定とする。 (?(条件式)成功式|失敗式) 条件式が成功すれば成功式、失敗すれば失敗式を実行する