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
0e607eba
Commit
0e607eba
authored
Feb 19, 1998
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
{fulllineitems} is now an environment; use it as such.
parent
70478389
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
Doc/lib/libregex.tex
Doc/lib/libregex.tex
+7
-3
Doc/libregex.tex
Doc/libregex.tex
+7
-3
No files found.
Doc/lib/libregex.tex
View file @
0e607eba
...
...
@@ -136,8 +136,10 @@ be used inside groups (see below) as well.
\item
[\code{\e( \e)}]
Indicates the start and end of a group; the
contents of a group can be matched later in the string with the
\code
{
\e
[1-9]
}
special sequence, described next.
%
\fulllineitems\item
[\code{\e \e 1, ... \e \e 7, \e 8, \e 9}]
\end{itemize}
\begin{fulllineitems}
\item
[\code{\e \e 1, ... \e \e 7, \e 8, \e 9}]
Matches the contents of the group of the same
number. For example,
\code
{
\e
(.+
\e
)
\e
\e
1
}
matches 'the the' or
'55 55', but not 'the end' (note the space after the group). This
...
...
@@ -145,7 +147,9 @@ special sequence can only be used to match one of the first 9 groups;
groups with higher numbers can be matched using the
\code
{
\e
v
}
sequence. (
\code
{
\e
8
}
and
\code
{
\e
9
}
don't need a double backslash
because they are not octal digits.)
%
\end{fulllineitems}
\begin{itemize}
\item
[\code{\e \e b}]
Matches the empty string, but only at the
beginning or end of a word. A word is defined as a sequence of
alphanumeric characters, so the end of a word is indicated by
...
...
Doc/libregex.tex
View file @
0e607eba
...
...
@@ -136,8 +136,10 @@ be used inside groups (see below) as well.
\item
[\code{\e( \e)}]
Indicates the start and end of a group; the
contents of a group can be matched later in the string with the
\code
{
\e
[1-9]
}
special sequence, described next.
%
\fulllineitems\item
[\code{\e \e 1, ... \e \e 7, \e 8, \e 9}]
\end{itemize}
\begin{fulllineitems}
\item
[\code{\e \e 1, ... \e \e 7, \e 8, \e 9}]
Matches the contents of the group of the same
number. For example,
\code
{
\e
(.+
\e
)
\e
\e
1
}
matches 'the the' or
'55 55', but not 'the end' (note the space after the group). This
...
...
@@ -145,7 +147,9 @@ special sequence can only be used to match one of the first 9 groups;
groups with higher numbers can be matched using the
\code
{
\e
v
}
sequence. (
\code
{
\e
8
}
and
\code
{
\e
9
}
don't need a double backslash
because they are not octal digits.)
%
\end{fulllineitems}
\begin{itemize}
\item
[\code{\e \e b}]
Matches the empty string, but only at the
beginning or end of a word. A word is defined as a sequence of
alphanumeric characters, so the end of a word is indicated by
...
...
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