@@ -52,7 +52,7 @@ fine-tuning parameters.
5252
5353.. _re-syntax :
5454
55- Regular Expression Syntax
55+ Regular expression syntax
5656-------------------------
5757
5858A regular expression (or RE) specifies a set of strings that matches it; the
@@ -717,7 +717,7 @@ three digits in length.
717717
718718.. _contents-of-module-re :
719719
720- Module Contents
720+ Module contents
721721---------------
722722
723723The module defines several functions, constants, and an exception. Some of the
@@ -1246,7 +1246,7 @@ Exceptions
12461246
12471247.. _re-objects :
12481248
1249- Regular Expression Objects
1249+ Regular expression objects
12501250--------------------------
12511251
12521252.. class :: Pattern
@@ -1396,7 +1396,7 @@ Regular Expression Objects
13961396
13971397.. _match-objects :
13981398
1399- Match Objects
1399+ Match objects
14001400-------------
14011401
14021402Match objects always have a boolean value of ``True ``.
@@ -1615,11 +1615,11 @@ when there is no match, you can test whether there was a match with a simple
16151615
16161616.. _re-examples :
16171617
1618- Regular Expression Examples
1618+ Regular expression examples
16191619---------------------------
16201620
16211621
1622- Checking for a Pair
1622+ Checking for a pair
16231623^^^^^^^^^^^^^^^^^^^
16241624
16251625In this example, we'll use the following helper function to display match
@@ -1783,7 +1783,7 @@ Code supporting older versions of Python should continue to use *match*.
17831783
17841784.. versionadded :: 3.15
17851785
1786- Making a Phonebook
1786+ Making a phonebook
17871787^^^^^^^^^^^^^^^^^^
17881788
17891789:func: `split ` splits a string into a list delimited by the passed pattern. The
@@ -1844,7 +1844,7 @@ house number from the street name:
18441844 ['Heather', 'Albrecht', '548.326.4584', '919', 'Park Place']]
18451845
18461846
1847- Text Munging
1847+ Text munging
18481848^^^^^^^^^^^^
18491849
18501850:func: `sub ` replaces every occurrence of a pattern with a string or the
@@ -1864,7 +1864,7 @@ in each word of a sentence except for the first and last characters::
18641864 'Pofsroser Aodlambelk, plasee reoprt yuor asnebces potlmrpy.'
18651865
18661866
1867- Finding all Adverbs
1867+ Finding all adverbs
18681868^^^^^^^^^^^^^^^^^^^
18691869
18701870:func: `findall ` matches *all * occurrences of a pattern, not just the first
@@ -1877,7 +1877,7 @@ the following manner::
18771877 ['carefully', 'quickly']
18781878
18791879
1880- Finding all Adverbs and their Positions
1880+ Finding all adverbs and their positions
18811881^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18821882
18831883If one wants more information about all matches of a pattern than the matched
@@ -1893,7 +1893,7 @@ to find all of the adverbs *and their positions* in some text, they would use
18931893 40-47: quickly
18941894
18951895
1896- Raw String Notation
1896+ Raw string notation
18971897^^^^^^^^^^^^^^^^^^^
18981898
18991899Raw string notation (``r"text" ``) keeps regular expressions sane. Without it,
@@ -1917,7 +1917,7 @@ functionally identical::
19171917 <re.Match object; span=(0, 1), match='\\'>
19181918
19191919
1920- Writing a Tokenizer
1920+ Writing a tokenizer
19211921^^^^^^^^^^^^^^^^^^^
19221922
19231923A `tokenizer or scanner <https://en.wikipedia.org/wiki/Lexical_analysis >`_
0 commit comments