Skip to content

Commit 2a8c360

Browse files
committed
Merge pull request yidao620c#85 from finfou/master
Fix example code in c02 p18_tokenizing_text
2 parents 0ea9523 + 9e1bd3a commit 2a8c360

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/c02/p18_tokenizing_text.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@
127127
128128
.. code-block:: python
129129
130-
PRINT = r'(P<PRINT>print)'
131-
NAME = r'(P<NAME>[a-zA-Z_][a-zA-Z_0-9]*)'
130+
PRINT = r'(?P<PRINT>print)'
131+
NAME = r'(?P<NAME>[a-zA-Z_][a-zA-Z_0-9]*)'
132132
133133
master_pat = re.compile('|'.join([PRINT, NAME]))
134134

0 commit comments

Comments
 (0)