From c290af26ef0dfdd7c8cef9011c8bbcfb3b6b5999 Mon Sep 17 00:00:00 2001 From: misza-one <81553666+misza-one@users.noreply.github.com> Date: Thu, 27 Oct 2022 18:59:02 +0200 Subject: [PATCH] Update 02_day_data_types.md the value in the variable has been changed so it matches the "commented console.log" outpu correctly.--- this is my first comit ever on someones repo. so i have the fear like i'm "correcting a teacher. --- 02_Day_Data_types/02_day_data_types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/02_Day_Data_types/02_day_data_types.md b/02_Day_Data_types/02_day_data_types.md index e27d43d..e5c08ae 100644 --- a/02_Day_Data_types/02_day_data_types.md +++ b/02_Day_Data_types/02_day_data_types.md @@ -767,7 +767,7 @@ Let us extract numbers from text using a regular expression. This is not the reg ```js let txt = 'In 2019, I ran 30 Days of Python. Now, in 2020 I am super exited to start this challenge' -let regEx = /\d+/ +let regEx = /\d/g // d with escape character means d not a normal d instead acts a digit // + means one or more digit numbers,