mirror of https://github.com/python/cpython
#14519: merge with 3.2.
This commit is contained in:
commit
5fe0f4e369
|
@ -1075,13 +1075,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 ::
|
||||
|
|
Loading…
Reference in New Issue