[Python-checkins] python/dist/src/Doc/lib libre.tex, 1.101.8.3,
1.101.8.4
rhettinger at users.sourceforge.net
rhettinger at users.sourceforge.net
Tue Sep 9 21:55:28 EDT 2003
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv28029
Modified Files:
Tag: release23-maint
libre.tex
Log Message:
SF patch #800899: Making "|" directive from REs a bit clearer.
Index: libre.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libre.tex,v
retrieving revision 1.101.8.3
retrieving revision 1.101.8.4
diff -C2 -d -r1.101.8.3 -r1.101.8.4
*** libre.tex 9 Sep 2003 01:32:16 -0000 1.101.8.3
--- libre.tex 10 Sep 2003 03:55:26 -0000 1.101.8.4
***************
*** 187,198 ****
creates a regular expression that will match either A or B. An
arbitrary number of REs can be separated by the \character{|} in this
! way. This can be used inside groups (see below) as well. REs
! separated by \character{|} are tried from left to right, and the first
! one that allows the complete pattern to match is considered the
! accepted branch. This means that if \code{A} matches, \code{B} will
! never be tested, even if it would produce a longer overall match. In
! other words, the \character{|} operator is never greedy. To match a
! literal \character{|}, use \regexp{\e|}, or enclose it inside a
! character class, as in \regexp{[|]}.
\item[\code{(...)}] Matches whatever regular expression is inside the
--- 187,197 ----
creates a regular expression that will match either A or B. An
arbitrary number of REs can be separated by the \character{|} in this
! way. This can be used inside groups (see below) as well. As the target
! string is scanned, REs separated by \character{|} are tried from left to
! right. When one pattern completely matches, that branch is accepted.
! This means that once \code{A} matches, \code{B} will not be tested further,
! even if it would produce a longer overall match. In other words, the
! \character{|} operator is never greedy. To match a literal \character{|},
! use \regexp{\e|}, or enclose it inside a character class, as in \regexp{[|]}.
\item[\code{(...)}] Matches whatever regular expression is inside the
More information about the Python-checkins
mailing list