diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2012-04-29 08:47:28 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2012-04-29 08:47:28 (GMT) |
commit | 8950019283dbe4ae4ed6d8a6790463c874b44403 (patch) | |
tree | 336f8eca0a0656b300581166208a24299f887de9 /Doc/library/re.rst | |
parent | 217e6a66db6d0f15e5f5a64c22e450ead4061b34 (diff) | |
download | cpython-8950019283dbe4ae4ed6d8a6790463c874b44403.zip cpython-8950019283dbe4ae4ed6d8a6790463c874b44403.tar.gz cpython-8950019283dbe4ae4ed6d8a6790463c874b44403.tar.bz2 |
#14519: fix the regex used in the scanf example.
Diffstat (limited to 'Doc/library/re.rst')
-rw-r--r-- | Doc/library/re.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst index 56e6057..e6e20d6 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -1058,13 +1058,13 @@ expressions. +--------------------------------+---------------------------------------------+ | ``%i`` | ``[-+]?(0[xX][\dA-Fa-f]+|0[0-7]*|\d+)`` | +--------------------------------+---------------------------------------------+ -| ``%o`` | ``0[0-7]*`` | +| ``%o`` | ``[-+]?[0-7]+`` | +--------------------------------+---------------------------------------------+ | ``%s`` | ``\S+`` | +--------------------------------+---------------------------------------------+ | ``%u`` | ``\d+`` | +--------------------------------+---------------------------------------------+ -| ``%x``, ``%X`` | ``0[xX][\dA-Fa-f]+`` | +| ``%x``, ``%X`` | ``[-+]?(0[xX])?[\dA-Fa-f]+`` | +--------------------------------+---------------------------------------------+ To extract the filename and numbers from a string like :: |