From 8f5dbc83eaec2b904424c0084e26dee992091614 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Fri, 17 Sep 2010 06:26:45 +0000 Subject: Fix typo in example regular expression. --- Doc/library/re.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v0.12