Commit cb8d00e9 authored by Raymond Hettinger's avatar Raymond Hettinger

SF bug #803842: Wrong description of regexp concatenation

parent 060407d3
...@@ -51,10 +51,11 @@ matches a particular string, which comes down to the same thing). ...@@ -51,10 +51,11 @@ matches a particular string, which comes down to the same thing).
Regular expressions can be concatenated to form new regular Regular expressions can be concatenated to form new regular
expressions; if \emph{A} and \emph{B} are both regular expressions, expressions; if \emph{A} and \emph{B} are both regular expressions,
then \emph{AB} is also a regular expression. If a string \emph{p} then \emph{AB} is also a regular expression. In general, if a string
matches A and another string \emph{q} matches B, the string \emph{pq} \emph{p} matches \emph{A} and another string \emph{q} matches \emph{B},
will match AB if \emph{A} and \emph{B} do no specify boundary the string \emph{pq} will match AB. This holds unless \emph{A} or
conditions that are no longer satisfied by \emph{pq}. Thus, complex \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 can easily be constructed from simpler primitive
expressions like the ones described here. For details of the theory expressions like the ones described here. For details of the theory
and implementation of regular expressions, consult the Friedl book and implementation of regular expressions, consult the Friedl book
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment