From 234919b73504997aaa16a498f92d56826335e9ba Mon Sep 17 00:00:00 2001 From: "K.Kosako" Date: Mon, 7 Aug 2017 15:34:54 +0900 Subject: [PATCH] small update doc/RE --- doc/RE | 10 +++++----- doc/RE.ja | 7 +++---- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/doc/RE b/doc/RE index 16cc888..6ecd4d8 100644 --- a/doc/RE +++ b/doc/RE @@ -1,4 +1,4 @@ -Oniguruma Regular Expressions Version 6.5.0 2017/07/30 +Oniguruma Regular Expressions Version 6.5.0 2017/08/07 syntax: ONIG_SYNTAX_RUBY (default) @@ -245,20 +245,20 @@ syntax: ONIG_SYNTAX_RUBY (default) (?~absent) Absent repeater (* proposed by Tanaka Akira) This works like .* (more precisely \O*), but it is limited by the range that does not include the string - match with absent. + match with . This is a written abbreviation of (?~|absent|\O*). \O* is used as a repeater. (?~|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. + that does not include the string match with . ex. (?~|345|\d*) "12345678" ==> "12", "1", "" (?~|absent) Absent cutter (* original) After passed this operator, string right range is limited at the point that does not include the string match whth - absent. + . (?~|) Absent clear Clear the effects caused by Absent cutters. @@ -273,7 +273,7 @@ syntax: ONIG_SYNTAX_RUBY (default) condition_exp can be a backreference number/name or a normal regular expression. - When condition_exp is a backreference, both then_exp and + When condition_exp is a backreference number/name, both then_exp and else_exp can be omitted. Then it works as a backreference validity checker. diff --git a/doc/RE.ja b/doc/RE.ja index c05468d..ab81e9e 100644 --- a/doc/RE.ja +++ b/doc/RE.ja @@ -1,4 +1,4 @@ -鬼車 正規表現 Version 6.5.0 2017/07/30 +鬼車 正規表現 Version 6.5.0 2017/08/07 使用文法: ONIG_SYNTAX_RUBY (既定値) @@ -245,10 +245,9 @@ <不在機能群> (?~不在式) 不在繰り返し (*原案 田中哲) - これは.*のように(より正確には\O*)動作するが、不在式に + これは.*(より正確には\O*)のように動作するが、不在式に 適合する文字列を含まない範囲に制限される。 これは(?~|不在式|\O*)の省略表記である。 - \O*の部分はマルチラインオプション(?m)の影響を受けない。 (?~|不在式|式) 不在式 (* 原作) これは"式"のように動作するが、不在式に適合する文字列を @@ -278,7 +277,7 @@ 今のところエラーにはしない。) - 条件式は後方参照または通常の式を使用できる。 + 条件式は後方参照の番号/名前または普通の式を使用できる。 条件式が後方参照の場合、成功式と失敗式の両方を省略可能であり、 この場合、後方参照値有効性を調べる(成功/失敗)機能のみになる。 -- 2.40.0