From 777ceca0188ecbf16683259272c233274fecc339 Mon Sep 17 00:00:00 2001 From: Henk-Jaap Wagenaar Date: Mon, 28 Aug 2017 06:41:20 +0100 Subject: [PATCH] bpo-26656: Improve re.compile documentation (GH-3211) - Link to the regular expressions object documentation - Clarify that it can be used with more than the two methods currently stated. --- Doc/library/re.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Doc/library/re.rst b/Doc/library/re.rst index 0b9d9755f30ec6..138e7d87996be8 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -490,9 +490,10 @@ form. .. function:: compile(pattern, flags=0) - Compile a regular expression pattern into a regular expression object, which - can be used for matching using its :func:`~regex.match` and - :func:`~regex.search` methods, described below. + Compile a regular expression pattern into a :ref:`regular expression object + `, which can be used for matching using its + :func:`~regex.match`, :func:`~regex.search` and other methods, described + below. The expression's behaviour can be modified by specifying a *flags* value. Values can be any of the following variables, combined using bitwise OR (the