[Python-checkins] CVS: python/dist/src/Doc/lib libre.tex,1.63,1.64

Fred L. Drake fdrake@users.sourceforge.net
Mon, 23 Jul 2001 14:15:02 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv21219/lib

Modified Files:
	libre.tex 
Log Message:

Be more specific about corner cases in the description of the $ RE syntax,
and include an example where the MULTILINE flag makes a real difference.

This closes SF bug #441600.


Index: libre.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libre.tex,v
retrieving revision 1.63
retrieving revision 1.64
diff -C2 -d -r1.63 -r1.64
*** libre.tex	2001/07/12 14:13:43	1.63
--- libre.tex	2001/07/23 21:14:59	1.64
***************
*** 97,104 ****
  \constant{MULTILINE} mode also matches immediately after each newline.
  
! \item[\character{\$}] Matches the end of the string, and in
! \constant{MULTILINE} mode also matches before a newline.
! \regexp{foo} matches both 'foo' and 'foobar', while the regular
! expression \regexp{foo\$} matches only 'foo'.
  
  \item[\character{*}] Causes the resulting RE to
--- 97,107 ----
  \constant{MULTILINE} mode also matches immediately after each newline.
  
! \item[\character{\$}] Matches the end of the string or just before the
! newline at the end of the string, and in \constant{MULTILINE} mode
! also matches before a newline.  \regexp{foo} matches both 'foo' and
! 'foobar', while the regular expression \regexp{foo\$} matches only
! 'foo'.  More interestingly, searching for \regexp{foo\e d} in
! 'foo1\textbackslash nfoo2\textbackslash n' matches 'foo2' normally,
! but 'foo1' in \constant{MULTILINE} mode.
  
  \item[\character{*}] Causes the resulting RE to