Skip to content

Commit 0036113

Browse files
committed
fix typo
1 parent 0475773 commit 0036113

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

basic/36_RegEx.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

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

2323

0 commit comments

Comments
 (0)