Update of /cvsroot/py-howto/pyhowto
In directory sc8-pr-cvs1:/tmp/cvs-serv31212
Modified Files:
regex.tex
Log Message:
Numerous rewrites and fixes
Index: regex.tex
===================================================================
RCS file: /cvsroot/py-howto/pyhowto/regex.tex,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -r1.15 -r1.16
*** regex.tex 28 Feb 2003 18:02:40 -0000 1.15
--- regex.tex 6 Apr 2003 23:35:20 -0000 1.16
***************
*** 2,9 ****
% TODO:
! % Document lookbehind assertions, conditionals, (?>...)
! % Document findall, finditer methods
% Better way of displaying a RE, a string, and what it matches
- % Show how to loop with search()
% Mention optional argument to match.groups()
% Unicode (at least a reference)
--- 2,8 ----
[...1322 lines suppressed...]
- example, \regexp{Isaac (?=Asimov)} will match \code{'Isaac~'} only if it's
- followed by \code{'Asimov'}.
-
- \item[\code{(?!...)}] Matches if \regexp{...} doesn't match next. This
- is a negative lookahead assertion. For example,
- \regexp{Isaac (?!Asimov)} will match \code{'Isaac~'} only if it's \emph{not}
- followed by \code{'Asimov'}.
--- 1420,1431 ----
The most complete book on regular expressions is almost certainly
! Jeffrey Friedl's \citetitle{Mastering Regular Expressions}, published
! by O'Reilly. Unfortunately, it exclusively concentrates on Perl and
Java's flavours of regular expressions, and doesn't contain any Python
! material at all, so it won't be useful as a reference for programming
! in Python. (The first edition covered Python's now-obsolete
! \module{regex} module, which won't help you much.) Consider checking
! it out from your library.
\end{document}
|