mirror of
https://github.com/Asabeneh/30-Days-Of-Python.git
synced 2026-06-03 21:02:42 +08:00
Update 18_regular_expressions.md
line 109 needed to be re.search(), not re.match()
This commit is contained in:
parent
ff24ab221f
commit
d3f83039e9
@ -106,7 +106,7 @@ The string does not string with *I like to teach*, therefore there was no match
|
||||
|
||||
```py
|
||||
# syntax
|
||||
re.match(substring, string, re.I)
|
||||
re.search(substring, string, re.I)
|
||||
# substring is a pattern, string is the text we look for a pattern , re.I is case ignore flag
|
||||
```
|
||||
|
||||
@ -453,4 +453,4 @@ distance = 8 -(-4) # 12
|
||||
|
||||
🎉 CONGRATULATIONS ! 🎉
|
||||
|
||||
[<< Day 17](../17_Day_Exception_handling/17_exception_handling.md) | [Day 19>>](../19_Day_File_handling/19_file_handling.md)
|
||||
[<< Day 17](../17_Day_Exception_handling/17_exception_handling.md) | [Day 19>>](../19_Day_File_handling/19_file_handling.md)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user