]> granicus.if.org Git - python/commitdiff
Fix typo in example regular expression.
authorRaymond Hettinger <python@rcn.com>
Fri, 17 Sep 2010 06:26:45 +0000 (06:26 +0000)
committerRaymond Hettinger <python@rcn.com>
Fri, 17 Sep 2010 06:26:45 +0000 (06:26 +0000)
Doc/library/re.rst

index 487d0e51628854805d922c60cf4cafbe24891e08..9787bcb2cdd178e1763e8ae575fbdeac3229473e 100644 (file)
@@ -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