diff options
author | Raymond Hettinger <python@rcn.com> | 2010-09-17 06:26:45 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2010-09-17 06:26:45 (GMT) |
commit | 8f5dbc83eaec2b904424c0084e26dee992091614 (patch) | |
tree | 0d2e494747face35835cc986fa52173d70f45c8c /Doc/library/re.rst | |
parent | 35c87f2b8e5cc62c91a3bdbaec4de50d366f6228 (diff) | |
download | cpython-8f5dbc83eaec2b904424c0084e26dee992091614.zip cpython-8f5dbc83eaec2b904424c0084e26dee992091614.tar.gz cpython-8f5dbc83eaec2b904424c0084e26dee992091614.tar.bz2 |
Fix typo in example regular expression.
Diffstat (limited to 'Doc/library/re.rst')
-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 |