Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
MorvanZhou committed Mar 7, 2018
1 parent 0475773 commit 0036113
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion basic/36_RegEx.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


# multiple patterns ("run" or "ran")
ptn = r"r[au]n" # start with "r" means regular expression
ptn = r"r[au]n" # start with "r" means raw string
print(re.search(ptn, "dog runs to cat")) # <_sre.SRE_Match object; span=(4, 7), match='run'>


Expand Down

0 comments on commit 0036113

Please sign in to comment.