diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-03-23 15:55:46 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2018-03-23 15:55:46 (GMT) |
commit | fce39ab1c8c0a8916a38290711fd921cb3c8eebe (patch) | |
tree | 00839f0aa58066f69bb9a74a824d3da48bf39e13 /Doc/library/re.rst | |
parent | 18d7edf32e6832a818621cb8cb3d144928eca232 (diff) | |
download | cpython-fce39ab1c8c0a8916a38290711fd921cb3c8eebe.zip cpython-fce39ab1c8c0a8916a38290711fd921cb3c8eebe.tar.gz cpython-fce39ab1c8c0a8916a38290711fd921cb3c8eebe.tar.bz2 |
Fix a reference to the MRE book in re docs (GH-1113)
Reported by Maksym Nikulyak on docs.p.o.
(cherry picked from commit a0a42d22d8dff0ec6ea9daa4d9c9e9399f9b4e6c)
Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
Diffstat (limited to 'Doc/library/re.rst')
-rw-r--r-- | Doc/library/re.rst | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst index db92c48..64d84e1 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -67,8 +67,8 @@ string *pq* will match AB. This holds unless *A* or *B* contain low precedence operations; boundary conditions between *A* and *B*; or have numbered group references. Thus, complex expressions can easily be constructed from simpler primitive expressions like the ones described here. For details of the theory -and implementation of regular expressions, consult the Friedl book referenced -above, or almost any textbook about compiler construction. +and implementation of regular expressions, consult the Friedl book [Frie09]_, +or almost any textbook about compiler construction. A brief explanation of the format of regular expressions follows. For further information and a gentler presentation, consult the :ref:`regex-howto`. @@ -471,14 +471,6 @@ three digits in length. Unknown escapes consisting of ``'\'`` and an ASCII letter now are errors. -.. seealso:: - - Mastering Regular Expressions - Book on regular expressions by Jeffrey Friedl, published by O'Reilly. The - second edition of the book no longer covers Python at all, but the first - edition covered writing good regular expression patterns in great detail. - - .. _contents-of-module-re: @@ -1561,3 +1553,9 @@ The tokenizer produces the following output:: Token(typ='END', value=';', line=4, column=27) Token(typ='ENDIF', value='ENDIF', line=5, column=4) Token(typ='END', value=';', line=5, column=9) + + +.. [Frie09] Friedl, Jeffrey. Mastering Regular Expressions. 3rd ed., O'Reilly + Media, 2009. The third edition of the book no longer covers Python at all, + but the first edition covered writing good regular expression patterns in + great detail. |