Thanks to visit codestin.com Credit goes to github.com
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.
2 parents deed215 + 4590c3d commit 3b85377Copy full SHA for 3b85377
1 file changed
Doc/library/fnmatch.rst
@@ -83,7 +83,7 @@ patterns.
83
>>>
84
>>> regex = fnmatch.translate('*.txt')
85
>>> regex
86
- '.*\\.txt$'
+ '.*\\.txt\\Z(?ms)'
87
>>> reobj = re.compile(regex)
88
>>> reobj.match('foobar.txt')
89
<_sre.SRE_Match object; span=(0, 10), match='foobar.txt'>
0 commit comments