summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2003-03-04 14:12:24 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2003-03-04 14:12:24 (GMT)
commit02a0b3b81a8601b89e4eab31286d12a804983ec6 (patch)
treeb19b45dd8a82541e0d9bf6f3a3a9d73b19a81444 /Doc
parent85f3227a74d7e04c637489f37d08f0ed10ae3054 (diff)
downloadcpython-02a0b3b81a8601b89e4eab31286d12a804983ec6.zip
cpython-02a0b3b81a8601b89e4eab31286d12a804983ec6.tar.gz
cpython-02a0b3b81a8601b89e4eab31286d12a804983ec6.tar.bz2
[bug #692016] update description of {m,n} modifier; you can omit the lower bound
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libre.tex7
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/lib/libre.tex b/Doc/lib/libre.tex
index 0b0f477..a82a0e4 100644
--- a/Doc/lib/libre.tex
+++ b/Doc/lib/libre.tex
@@ -129,9 +129,10 @@ not five.
\item[\code{\{\var{m},\var{n}\}}] Causes the resulting RE to match from
\var{m} to \var{n} repetitions of the preceding RE, attempting to
match as many repetitions as possible. For example, \regexp{a\{3,5\}}
-will match from 3 to 5 \character{a} characters. Omitting \var{n}
-specifies an infinite upper bound; you can't omit \var{m}. As an
-example, \regexp{a\{4,\}b} will match \code{aaaab}, a thousand
+will match from 3 to 5 \character{a} characters. Omitting \var{m}
+specifies a lower bound of zero,
+and omitting \var{n} specifies an infinite upper bound. As an
+example, \regexp{a\{4,\}b} will match \code{aaaab} or a thousand
\character{a} characters followed by a \code{b}, but not \code{aaab}.
The comma may not be omitted or the modifier would be confused with
the previously described form.