Skip to content

Commit 961a4ef

Browse files
committed
Use same word in example
1 parent 7a97af3 commit 961a4ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/howto/regex.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,8 +468,8 @@ The :meth:`~re.Pattern.fullmatch` method checks if the RE matches the entire
468468
string exactly::
469469

470470
>>> p = re.compile('[a-z]+')
471-
>>> p.search(' words ')
472-
<re.Match object; span=(1, 6), match='words'>
471+
>>> p.search(' textual ')
472+
<re.Match object; span=(1, 8), match='textual'>
473473
>>> p.fullmatch(' textual ') # Fails to match and returns None
474474
>>> p.fullmatch('textual')
475475
<re.Match object; span=(0, 7), match='textual'>

0 commit comments

Comments
 (0)