Update 18_regular_expressions.md

line 109 needed to be re.search(), not re.match()
This commit is contained in:
dbuffel 2022-05-18 13:00:32 +04:00 committed by GitHub
parent ff24ab221f
commit d3f83039e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)