diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2012-04-29 04:53:20 +0300 |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2012-04-29 04:53:20 +0300 |
commit | b713e3f72f204d4514dc2e49f17bb8f207cd9e49 (patch) | |
tree | e34c137c1d3b6316aa75603933e1ebff76a91ded /Doc/library/re.rst | |
parent | 9716944ae4797cf9c8642e6c7f0e1aa0726e76b9 (diff) | |
parent | b62f6a880d5aa2645aa8d247ee7046232b72e33c (diff) | |
download | cpython-b713e3f72f204d4514dc2e49f17bb8f207cd9e49.tar.gz |
#14155: merge note about \b from 3.2.
Diffstat (limited to 'Doc/library/re.rst')
-rw-r--r-- | Doc/library/re.rst | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst index 07868b2a6f..72bc46a1ee 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -684,9 +684,12 @@ form. .. function:: escape(string) - Return *string* with all non-alphanumerics backslashed; this is useful if you - want to match an arbitrary literal string that may have regular expression - metacharacters in it. + Escape all the characters in pattern except ASCII letters, numbers and ``'_'``. + This is useful if you want to match an arbitrary literal string that may + have regular expression metacharacters in it. + + .. versionchanged:: 3.3 + The ``'_'`` character is no longer escaped. .. function:: purge() |