[docs] regular expression documentation bug
Alexandros Marinos
al3xgr at gmail.com
Mon Nov 15 14:03:16 CET 2010
In the page http://docs.python.org/library/re.html, section 7.2.1, it says:
'$'
Matches the end of the string [...] foo matches both ‘foo’ and
‘foobar’, while the regular expression foo$ matches only ‘foo’.
this last sentence looked odd, so I tried it:
print re.match('foo$', 'foobar')
output: "None"
I think a better example would be something like 'foobarfoo'.
Regards,
Alexandros
More information about the docs
mailing list