We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff22eb2 commit 920a695Copy full SHA for 920a695
Doc/howto/regex.rst
@@ -1288,9 +1288,7 @@ misunderstood.
1288
1289
:func:`!prefixmatch` aka :func:`!match` only checks if the RE matches at the
1290
beginning of the string while :func:`!search` scans forward through the
1291
-string for a match. :func:`!prefixmatch` only reports a successful match which
1292
-starts at zero; if the match wouldn't start at zero, :func:`!prefixmatch` will
1293
-*not* report it. ::
+string for a match. ::
1294
1295
>>> print(re.prefixmatch('super', 'superstition').span())
1296
(0, 5)
0 commit comments