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
1e270f0e
Commit
1e270f0e
authored
Nov 30, 1998
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Nits to support conversions.
parent
f954b651
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
Doc/lib/libre.tex
Doc/lib/libre.tex
+4
-7
No files found.
Doc/lib/libre.tex
View file @
1e270f0e
...
...
@@ -67,11 +67,8 @@ characters either stand for classes of ordinary characters, or affect
how the regular expressions around them are interpreted.
The special characters are:
% define these since they're used twice:
\newcommand
{
\MyLeftMargin
}{
0.7in
}
\newcommand
{
\MyLabelWidth
}{
0.65in
}
\begin{list}
{}{
\leftmargin
\MyLeftMargin
\labelwidth
\MyLabelWidth
}
\begin{list}
{}{
\leftmargin
0.7in
\labelwidth
0.65in
}
\item
[\character{.}]
(Dot.) In the default mode, this matches any
character except a newline. If the
\constant
{
DOTALL
}
flag has been
...
...
@@ -144,8 +141,8 @@ characters are not active inside sets. For example, \regexp{[akm\$]}
will match any of the characters
\character
{
a
}
,
\character
{
k
}
,
\character
{
m
}
, or
\character
{
\$
}
;
\regexp
{
[a-z]
}
will match any lowercase letter, and
\code
{
[a-zA-Z0-9]
}
matches any
letter or digit. Character classes such as
\code
{
\e
w
}
or
\code
{
\e
S
}
(defined below) are also acceptable inside a range. If you want to
letter or digit. Character classes such as
\code
{
\e
w
}
or
\code
{
\e
S
}
(defined below) are also acceptable inside a range. If you want to
include a
\character
{
]
}
or a
\character
{
-
}
inside a set, precede it with a
backslash, or place it as the first character. The
pattern
\regexp
{
[]]
}
will match
\code
{
']'
}
, for example.
...
...
@@ -227,7 +224,7 @@ list below. If the ordinary character is not on the list, then the
resulting RE will match the second character. For example,
\regexp
{
\e\$
}
matches the character
\character
{
\$
}
.
\begin{list}
{}{
\leftmargin
\MyLeftMargin
\labelwidth
\MyLabelWidth
}
\begin{list}
{}{
\leftmargin
0.7in
\labelwidth
0.65in
}
%
\item
[\code{\e \var{number}}]
Matches the contents of the group of the
...
...
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