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 7a97af3 commit 961a4efCopy full SHA for 961a4ef
Doc/howto/regex.rst
@@ -468,8 +468,8 @@ The :meth:`~re.Pattern.fullmatch` method checks if the RE matches the entire
468
string exactly::
469
470
>>> p = re.compile('[a-z]+')
471
- >>> p.search(' words ')
472
- <re.Match object; span=(1, 6), match='words'>
+ >>> p.search(' textual ')
+ <re.Match object; span=(1, 8), match='textual'>
473
>>> p.fullmatch(' textual ') # Fails to match and returns None
474
>>> p.fullmatch('textual')
475
<re.Match object; span=(0, 7), match='textual'>
0 commit comments