Fix typo in example regular expression.

This commit is contained in:
Raymond Hettinger 2010-09-17 06:26:45 +00:00
parent 35c87f2b8e
commit 8f5dbc83ea
1 changed files with 1 additions and 1 deletions

View File

@ -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