We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0475773 commit 0036113Copy full SHA for 0036113
basic/36_RegEx.py
@@ -17,7 +17,7 @@
17
18
19
# multiple patterns ("run" or "ran")
20
-ptn = r"r[au]n" # start with "r" means regular expression
+ptn = r"r[au]n" # start with "r" means raw string
21
print(re.search(ptn, "dog runs to cat")) # <_sre.SRE_Match object; span=(4, 7), match='run'>
22
23
0 commit comments