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
cb8d00e9
Commit
cb8d00e9
authored
Sep 10, 2003
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SF bug #803842: Wrong description of regexp concatenation
parent
060407d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
Doc/lib/libre.tex
Doc/lib/libre.tex
+5
-4
No files found.
Doc/lib/libre.tex
View file @
cb8d00e9
...
...
@@ -51,10 +51,11 @@ matches a particular string, which comes down to the same thing).
Regular expressions can be concatenated to form new regular
expressions; if
\emph
{
A
}
and
\emph
{
B
}
are both regular expressions,
then
\emph
{
AB
}
is also a regular expression. If a string
\emph
{
p
}
matches A and another string
\emph
{
q
}
matches B, the string
\emph
{
pq
}
will match AB if
\emph
{
A
}
and
\emph
{
B
}
do no specify boundary
conditions that are no longer satisfied by
\emph
{
pq
}
. Thus, complex
then
\emph
{
AB
}
is also a regular expression. In general, if a string
\emph
{
p
}
matches
\emph
{
A
}
and another string
\emph
{
q
}
matches
\emph
{
B
}
,
the string
\emph
{
pq
}
will match AB. This holds unless
\emph
{
A
}
or
\emph
{
B
}
contain low precedence operations; boundary conditions between
\emph
{
A
}
and
\emph
{
B
}
; or have numbered group references. Thus, complex
expressions can easily be constructed from simpler primitive
expressions like the ones described here. For details of the theory
and implementation of regular expressions, consult the Friedl book
...
...
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