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

Fred L. Drake fdrake@users.sourceforge.net
Thu, 14 Feb 2002 07:19:33 -0800


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

Modified Files:
	libre.tex 
Log Message:
Consistently use \textasciicircum to produce a ^ character.
LaTeX really falls flat on this one!


Index: libre.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libre.tex,v
retrieving revision 1.73
retrieving revision 1.74
diff -C2 -d -r1.73 -r1.74
*** libre.tex	29 Nov 2001 20:23:14 -0000	1.73
--- libre.tex	14 Feb 2002 15:19:30 -0000	1.74
***************
*** 94,99 ****
  specified, this matches any character including a newline.
  
! \item[\character{\^}] (Caret.)  Matches the start of the string, and in
! \constant{MULTILINE} mode also matches immediately after each newline.
  
  \item[\character{\$}] Matches the end of the string or just before the
--- 94,100 ----
  specified, this matches any character including a newline.
  
! \item[\character{\textasciicircum}] (Caret.)  Matches the start of the
! string, and in \constant{MULTILINE} mode also matches immediately
! after each newline.
  
  \item[\character{\$}] Matches the end of the string or just before the
***************
*** 182,189 ****
  
  You can match the characters not within a range by \dfn{complementing}
! the set.  This is indicated by including a \character{\^} as the first
! character of the set; \character{\^} elsewhere will simply match the
! \character{\^} character.  For example, \regexp{[{\^}5]} will match
! any character except \character{5}.
  
  \item[\character{|}]\code{A|B}, where A and B can be arbitrary REs,
--- 183,194 ----
  
  You can match the characters not within a range by \dfn{complementing}
! the set.  This is indicated by including a
! \character{\textasciicircum} as the first character of the set;
! \character{\textasciicircum} elsewhere will simply match the
! \character{\textasciicircum} character.  For example,
! \regexp{[{\textasciicircum}5]} will match
! any character except \character{5}, and
! \regexp{[\textasciicircum\code{\textasciicircum}]} will match any character
! except \character{\textasciicircum}.
  
  \item[\character{|}]\code{A|B}, where A and B can be arbitrary REs,
***************
*** 319,323 ****
  
  \item[\code{\e D}]Matches any non-digit character; this is
! equivalent to the set \regexp{[{\^}0-9]}.
  
  \item[\code{\e s}]Matches any whitespace character; this is
--- 324,328 ----
  
  \item[\code{\e D}]Matches any non-digit character; this is
! equivalent to the set \regexp{[{\textasciicircum}0-9]}.
  
  \item[\code{\e s}]Matches any whitespace character; this is
***************
*** 325,329 ****
  
  \item[\code{\e S}]Matches any non-whitespace character; this is
! equivalent to the set \regexp{[\^\ \e t\e n\e r\e f\e v]}.
  
  \item[\code{\e w}]When the \constant{LOCALE} and \constant{UNICODE}
--- 330,334 ----
  
  \item[\code{\e S}]Matches any non-whitespace character; this is
! equivalent to the set \regexp{[\textasciicircum\ \e t\e n\e r\e f\e v]}.
  
  \item[\code{\e w}]When the \constant{LOCALE} and \constant{UNICODE}
***************
*** 338,342 ****
  \item[\code{\e W}]When the \constant{LOCALE} and \constant{UNICODE}
  flags are not specified, matches any non-alphanumeric character; this
! is equivalent to the set \regexp{[{\^}a-zA-Z0-9_]}.   With
  \constant{LOCALE}, it will match any character not in the set
  \regexp{[0-9_]}, and not defined as a letter for the current locale.
--- 343,347 ----
  \item[\code{\e W}]When the \constant{LOCALE} and \constant{UNICODE}
  flags are not specified, matches any non-alphanumeric character; this
! is equivalent to the set \regexp{[{\textasciicircum}a-zA-Z0-9_]}.   With
  \constant{LOCALE}, it will match any character not in the set
  \regexp{[0-9_]}, and not defined as a letter for the current locale.
***************
*** 362,366 ****
  
  Note that match may differ from search using a regular expression
! beginning with \character{\^}: \character{\^} matches only at the
  start of the string, or in \constant{MULTILINE} mode also immediately
  following a newline.  The ``match'' operation succeeds only if the
--- 367,372 ----
  
  Note that match may differ from search using a regular expression
! beginning with \character{\textasciicircum}:
! \character{\textasciicircum} matches only at the
  start of the string, or in \constant{MULTILINE} mode also immediately
  following a newline.  The ``match'' operation succeeds only if the
***************
*** 430,441 ****
  \begin{datadesc}{M}
  \dataline{MULTILINE}
! When specified, the pattern character \character{\^} matches at the
! beginning of the string and at the beginning of each line
! (immediately following each newline); and the pattern character
  \character{\$} matches at the end of the string and at the end of each
! line (immediately preceding each newline).  By default, \character{\^}
! matches only at the beginning of the string, and \character{\$} only
! at the end of the string and immediately before the newline (if any)
! at the end of the string.
  \end{datadesc}
  
--- 436,447 ----
  \begin{datadesc}{M}
  \dataline{MULTILINE}
! When specified, the pattern character \character{\textasciicircum}
! matches at the beginning of the string and at the beginning of each
! line (immediately following each newline); and the pattern character
  \character{\$} matches at the end of the string and at the end of each
! line (immediately preceding each newline).  By default,
! \character{\textasciicircum} matches only at the beginning of the
! string, and \character{\$} only at the end of the string and
! immediately before the newline (if any) at the end of the string.
  \end{datadesc}
  
***************
*** 624,628 ****
    The optional second parameter \var{pos} gives an index in the string
    where the search is to start; it defaults to \code{0}.  This is not
!   completely equivalent to slicing the string; the \code{'\^'} pattern
    character matches at the real beginning of the string and at positions
    just after a newline, but not necessarily at the index where the search
--- 630,635 ----
    The optional second parameter \var{pos} gives an index in the string
    where the search is to start; it defaults to \code{0}.  This is not
!   completely equivalent to slicing the string; the
!   \code{'\textasciicircum'} pattern
    character matches at the real beginning of the string and at positions
    just after a newline, but not necessarily at the index where the search