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
e66e9c55
Commit
e66e9c55
authored
Dec 29, 1997
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove more commented-out text that is no longer needed.
parent
29d3b936
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
42 deletions
+0
-42
Doc/lib/libre.tex
Doc/lib/libre.tex
+0
-21
Doc/libre.tex
Doc/libre.tex
+0
-21
No files found.
Doc/lib/libre.tex
View file @
e66e9c55
...
...
@@ -24,27 +24,6 @@ character string containing a backslash and the letter 'n', while
\code
{
"
\e
n"
}
is a one-character string containing a newline. Usually
patterns will be expressed in Python code using this raw string notation.
% XXX Can the following section be dropped, or should it be boiled down?
%\strong{Please note:} There is a little-known fact about Python string
%literals which means that you don't usually have to worry about
%doubling backslashes, even though they are used to escape special
%characters in string literals as well as in regular expressions. This
%is because Python doesn't remove backslashes from string literals if
%they are followed by an unrecognized escape character.
%\emph{However}, if you want to include a literal \dfn{backslash} in a
%regular expression represented as a string literal, you have to
%\emph{quadruple} it or enclose it in a singleton character class.
%E.g.\ to extract \LaTeX\ \code{\e section\{{\rm
%\ldots}\}} headers from a document, you can use this pattern:
%\code{'[\e ] section\{\e (.*\e )\}'}. \emph{Another exception:}
%the escape sequence \code{\e b} is significant in string literals
%(where it means the ASCII bell character) as well as in Emacs regular
%expressions (where it stands for a word boundary), so in order to
%search for a word boundary, you should use the pattern \code{'\e \e b'}.
%Similarly, a backslash followed by a digit 0-7 should be doubled to
%avoid interpretation as an octal escape.
\subsection
{
Regular Expression Syntax
}
A regular expression (or RE) specifies a set of strings that matches
...
...
Doc/libre.tex
View file @
e66e9c55
...
...
@@ -24,27 +24,6 @@ character string containing a backslash and the letter 'n', while
\code
{
"
\e
n"
}
is a one-character string containing a newline. Usually
patterns will be expressed in Python code using this raw string notation.
% XXX Can the following section be dropped, or should it be boiled down?
%\strong{Please note:} There is a little-known fact about Python string
%literals which means that you don't usually have to worry about
%doubling backslashes, even though they are used to escape special
%characters in string literals as well as in regular expressions. This
%is because Python doesn't remove backslashes from string literals if
%they are followed by an unrecognized escape character.
%\emph{However}, if you want to include a literal \dfn{backslash} in a
%regular expression represented as a string literal, you have to
%\emph{quadruple} it or enclose it in a singleton character class.
%E.g.\ to extract \LaTeX\ \code{\e section\{{\rm
%\ldots}\}} headers from a document, you can use this pattern:
%\code{'[\e ] section\{\e (.*\e )\}'}. \emph{Another exception:}
%the escape sequence \code{\e b} is significant in string literals
%(where it means the ASCII bell character) as well as in Emacs regular
%expressions (where it stands for a word boundary), so in order to
%search for a word boundary, you should use the pattern \code{'\e \e b'}.
%Similarly, a backslash followed by a digit 0-7 should be doubled to
%avoid interpretation as an octal escape.
\subsection
{
Regular Expression Syntax
}
A regular expression (or RE) specifies a set of strings that matches
...
...
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