[Python-checkins] r84856 - python/branches/py3k/Doc/library/re.rst

raymond.hettinger python-checkins at python.org
Fri Sep 17 08:26:45 CEST 2010


Author: raymond.hettinger
Date: Fri Sep 17 08:26:45 2010
New Revision: 84856

Log:
Fix typo in example regular expression.

Modified:
   python/branches/py3k/Doc/library/re.rst

Modified: python/branches/py3k/Doc/library/re.rst
==============================================================================
--- python/branches/py3k/Doc/library/re.rst	(original)
+++ python/branches/py3k/Doc/library/re.rst	Fri Sep 17 08:26:45 2010
@@ -1299,7 +1299,7 @@
 
     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


More information about the Python-checkins mailing list