diff options
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/re.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst index 487d0e5..9787bcb 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -1299,7 +1299,7 @@ successive matches:: def tokenize(s): tok_spec = [ - ('NUMBER', r'\d+(.\d+)?'), # Integer or decimal number + ('NUMBER', r'\d+(\.\d*)?'), # Integer or decimal number ('ASSIGN', r':='), # Assignment operator ('END', ';'), # Statement terminator ('ID', r'[A-Za-z]+'), # Identifiers |