Message30959
>>> help(sre)
...
"$" Matches the end of the string.
...
\Z Matches only at the end of the string.
...
M MULTILINE "^" matches the beginning of lines as well as the string.
"$" matches the end of lines as well as the string.
The docs for "$" are misleading - it actually matches in newline-specific ways which the module's built-in docs don't hint at. The MULTILINE docs don't clarify this.
I'd also like to see "from sre import __doc__" added to the end of re.py; lack of "help(re)" is a bigger problem than having slightly wrong auto-generated docs for the re module itself.
|
|
Date |
User |
Action |
Args |
2007-08-23 14:51:09 | admin | link | issue1631394 messages |
2007-08-23 14:51:09 | admin | create | |
|