From: K.Kosako Date: Fri, 29 Mar 2019 03:54:36 +0000 (+0900) Subject: update doc/RE for {n,m} (n > m) X-Git-Tag: v6.9.2_rc1~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2156dba1d3e0621adc3ce69d6b6652aba18984d6;p=onig update doc/RE for {n,m} (n > m) --- 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でのみ強欲な指定子