[Python-checkins] python/dist/src/Doc/lib libre.tex,1.106,1.107
niemeyer at users.sourceforge.net
niemeyer at users.sourceforge.net
Fri Oct 17 18:13:18 EDT 2003
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv19832/Doc/lib
Modified Files:
libre.tex
Log Message:
Implemented non-recursive SRE matching.
Index: libre.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libre.tex,v
retrieving revision 1.106
retrieving revision 1.107
diff -C2 -d -r1.106 -r1.107
*** libre.tex 10 Sep 2003 18:45:12 -0000 1.106
--- libre.tex 17 Oct 2003 22:13:16 -0000 1.107
***************
*** 298,301 ****
--- 298,310 ----
assertions may match at the beginning of the string being searched.
+ \item[\code{(?(\var{id/name})yes-pattern|no-pattern)}] Will try to match
+ with \regexp{yes-pattern} if the group with given \var{id} or \var{name}
+ exists, and with \regexp{no-pattern} if it doesn't. \regexp{|no-pattern}
+ is optional and can be omitted. For example,
+ \regexp{(<)?(\e w+@\e w+(?:\e .\e w+)+)(?(1)>)} is a poor email matching
+ pattern, which will match with \code{'<user at host.com>'} as well as
+ \code{'user at host.com'}, but not with \code{'<user at host.com'}.
+ \versionadded{2.3}
+
\end{list}
More information about the Python-checkins
mailing list