Skip to content

Commit fce39ab

Browse files
Fix a reference to the MRE book in re docs (pythonGH-1113)
Reported by Maksym Nikulyak on docs.p.o. (cherry picked from commit a0a42d2) Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
1 parent 18d7edf commit fce39ab

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

Doc/library/re.rst

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ string *pq* will match AB. This holds unless *A* or *B* contain low precedence
6767
operations; boundary conditions between *A* and *B*; or have numbered group
6868
references. Thus, complex expressions can easily be constructed from simpler
6969
primitive expressions like the ones described here. For details of the theory
70-
and implementation of regular expressions, consult the Friedl book referenced
71-
above, or almost any textbook about compiler construction.
70+
and implementation of regular expressions, consult the Friedl book [Frie09]_,
71+
or almost any textbook about compiler construction.
7272

7373
A brief explanation of the format of regular expressions follows. For further
7474
information and a gentler presentation, consult the :ref:`regex-howto`.
@@ -471,14 +471,6 @@ three digits in length.
471471
Unknown escapes consisting of ``'\'`` and an ASCII letter now are errors.
472472

473473

474-
.. seealso::
475-
476-
Mastering Regular Expressions
477-
Book on regular expressions by Jeffrey Friedl, published by O'Reilly. The
478-
second edition of the book no longer covers Python at all, but the first
479-
edition covered writing good regular expression patterns in great detail.
480-
481-
482474

483475
.. _contents-of-module-re:
484476

@@ -1561,3 +1553,9 @@ The tokenizer produces the following output::
15611553
Token(typ='END', value=';', line=4, column=27)
15621554
Token(typ='ENDIF', value='ENDIF', line=5, column=4)
15631555
Token(typ='END', value=';', line=5, column=9)
1556+
1557+
1558+
.. [Frie09] Friedl, Jeffrey. Mastering Regular Expressions. 3rd ed., O'Reilly
1559+
Media, 2009. The third edition of the book no longer covers Python at all,
1560+
but the first edition covered writing good regular expression patterns in
1561+
great detail.

0 commit comments

Comments
 (0)