From 2156dba1d3e0621adc3ce69d6b6652aba18984d6 Mon Sep 17 00:00:00 2001 From: "K.Kosako" Date: Fri, 29 Mar 2019 12:54:36 +0900 Subject: [PATCH] update doc/RE for {n,m} (n > m) --- doc/RE | 5 +++-- doc/RE.ja | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/doc/RE b/doc/RE index 117b5bc..9734667 100644 --- a/doc/RE +++ b/doc/RE @@ -127,7 +127,7 @@ syntax: ONIG_SYNTAX_ONIGURUMA (default) ? 1 or 0 times * 0 or more times + 1 or more times - {n,m} at least n but no more than m times + {n,m} (n <= m) at least n but no more than m times {n,} at least n times {,n} at least 0 but no more than n times ({0,n}) {n} n times @@ -137,7 +137,7 @@ syntax: ONIG_SYNTAX_ONIGURUMA (default) ?? 0 or 1 times *? 0 or more times +? 1 or more times - {n,m}? at least n but not more than m times + {n,m}? at least min(n,m) but not more than max(n,m) times {n,}? at least n times {,n}? at least 0 but not more than n times (== {0,n}?) @@ -146,6 +146,7 @@ syntax: ONIG_SYNTAX_ONIGURUMA (default) ?+ 1 or 0 times *+ 0 or more times ++ 1 or more times + {n,m} (n > m) at least m but not more than n times {n,m}+, {n,}+, {n}+ are possessive operators in ONIG_SYNTAX_JAVA and ONIG_SYNTAX_PERL only. diff --git a/doc/RE.ja b/doc/RE.ja index 926158b..5afc784 100644 --- a/doc/RE.ja +++ b/doc/RE.ja @@ -126,7 +126,7 @@ ? 一回または零回 * 零回以上 + 一回以上 - {n,m} n回以上m回以下 + {n,m} (n <= m) n回以上m回以下 {n,} n回以上 {,n} 零回以上n回以下 ({0,n}) {n} n回 @@ -136,7 +136,7 @@ ?? 零回または一回 *? 零回以上 +? 一回以上 - {n,m}? n回以上m回以下 + {n,m}? min(n,m)回以上 かつ max(n,m)回以下 {n,}? n回以上 {,n}? 零回以上n回以下 (== {0,n}?) @@ -145,6 +145,7 @@ ?+ 一回または零回 *+ 零回以上 ++ 一回以上 + {n,m} (n > m) m回以上n回以下 {n,m}+, {n,}+, {n}+ は、ONIG_SYNTAX_JAVAとONIG_SYNTAX_PERLでのみ強欲な指定子 -- 2.40.0