summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2010-09-17 06:26:45 (GMT)
committerRaymond Hettinger <python@rcn.com>2010-09-17 06:26:45 (GMT)
commit8f5dbc83eaec2b904424c0084e26dee992091614 (patch)
tree0d2e494747face35835cc986fa52173d70f45c8c /Doc
parent35c87f2b8e5cc62c91a3bdbaec4de50d366f6228 (diff)
downloadcpython-8f5dbc83eaec2b904424c0084e26dee992091614.zip
cpython-8f5dbc83eaec2b904424c0084e26dee992091614.tar.gz
cpython-8f5dbc83eaec2b904424c0084e26dee992091614.tar.bz2
Fix typo in example regular expression.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/re.rst2
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