Skip to content

Commit 920a695

Browse files
committed
Trim a bit more from 'prefixmatch() versus search()'
1 parent ff22eb2 commit 920a695

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Doc/howto/regex.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1288,9 +1288,7 @@ misunderstood.
12881288

12891289
:func:`!prefixmatch` aka :func:`!match` only checks if the RE matches at the
12901290
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. ::
1291+
string for a match. ::
12941292

12951293
>>> print(re.prefixmatch('super', 'superstition').span())
12961294
(0, 5)

0 commit comments

Comments
 (0)