From d3f83039e90d4ba1da046c883f25998e76504988 Mon Sep 17 00:00:00 2001 From: dbuffel <54157124+dbuffel@users.noreply.github.com> Date: Wed, 18 May 2022 13:00:32 +0400 Subject: [PATCH] Update 18_regular_expressions.md line 109 needed to be re.search(), not re.match() --- 18_Day_Regular_expressions/18_regular_expressions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/18_Day_Regular_expressions/18_regular_expressions.md b/18_Day_Regular_expressions/18_regular_expressions.md index f8366d2..5fcd65c 100644 --- a/18_Day_Regular_expressions/18_regular_expressions.md +++ b/18_Day_Regular_expressions/18_regular_expressions.md @@ -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) \ No newline at end of file +[<< Day 17](../17_Day_Exception_handling/17_exception_handling.md) | [Day 19>>](../19_Day_File_handling/19_file_handling.md)