Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
02a0b3b8
Commit
02a0b3b8
authored
Mar 04, 2003
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[bug #692016] update description of {m,n} modifier; you can omit the lower bound
parent
85f3227a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
Doc/lib/libre.tex
Doc/lib/libre.tex
+4
-3
No files found.
Doc/lib/libre.tex
View file @
02a0b3b8
...
@@ -129,9 +129,10 @@ not five.
...
@@ -129,9 +129,10 @@ not five.
\item
[\code{\{\var{m},\var{n}\}}]
Causes the resulting RE to match from
\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
\var
{
m
}
to
\var
{
n
}
repetitions of the preceding RE, attempting to
match as many repetitions as possible. For example,
\regexp
{
a
\{
3,5
\}
}
match as many repetitions as possible. For example,
\regexp
{
a
\{
3,5
\}
}
will match from 3 to 5
\character
{
a
}
characters. Omitting
\var
{
n
}
will match from 3 to 5
\character
{
a
}
characters. Omitting
\var
{
m
}
specifies an infinite upper bound; you can't omit
\var
{
m
}
. As an
specifies a lower bound of zero,
example,
\regexp
{
a
\{
4,
\}
b
}
will match
\code
{
aaaab
}
, a thousand
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
}
.
\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 comma may not be omitted or the modifier would be confused with
the previously described form.
the previously described form.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment