#14519: fix the regex used in the scanf example.
This commit is contained in:
parent
b8e336b974
commit
a0b1d1eea2
|
@ -1072,13 +1072,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