#14519: fix the regex used in the scanf example.
This commit is contained in:
parent
217e6a66db
commit
8950019283
|
@ -1058,13 +1058,13 @@ expressions.
|
||||||
+--------------------------------+---------------------------------------------+
|
+--------------------------------+---------------------------------------------+
|
||||||
| ``%i`` | ``[-+]?(0[xX][\dA-Fa-f]+|0[0-7]*|\d+)`` |
|
| ``%i`` | ``[-+]?(0[xX][\dA-Fa-f]+|0[0-7]*|\d+)`` |
|
||||||
+--------------------------------+---------------------------------------------+
|
+--------------------------------+---------------------------------------------+
|
||||||
| ``%o`` | ``0[0-7]*`` |
|
| ``%o`` | ``[-+]?[0-7]+`` |
|
||||||
+--------------------------------+---------------------------------------------+
|
+--------------------------------+---------------------------------------------+
|
||||||
| ``%s`` | ``\S+`` |
|
| ``%s`` | ``\S+`` |
|
||||||
+--------------------------------+---------------------------------------------+
|
+--------------------------------+---------------------------------------------+
|
||||||
| ``%u`` | ``\d+`` |
|
| ``%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 ::
|
To extract the filename and numbers from a string like ::
|
||||||
|
|
Loading…
Reference in New Issue