From: Raymond Hettinger Date: Fri, 17 Sep 2010 06:26:45 +0000 (+0000) Subject: Fix typo in example regular expression. X-Git-Tag: v3.2a3~241 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8f5dbc83eaec2b904424c0084e26dee992091614;p=thirdparty%2FPython%2Fcpython.git Fix typo in example regular expression. --- diff --git a/Doc/library/re.rst b/Doc/library/re.rst index 487d0e516288..9787bcb2cdd1 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