#14519: fix the regex used in the scanf example.

This commit is contained in:
Ezio Melotti 2012-04-29 11:47:28 +03:00
parent 217e6a66db
commit 8950019283
1 changed files with 2 additions and 2 deletions

View File

@ -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 ::