From 2a8822fb488eaeadde6826474bb2c1a4aab63704 Mon Sep 17 00:00:00 2001 From: DivyeshGolani <44727323+DivyeshGolani@users.noreply.github.com> Date: Mon, 6 Sep 2021 12:55:46 +0530 Subject: [PATCH] changes in regular expression changed from "let regEx = /\d+/" to "let regEx = /\d/g" to match the output like this ["2", "0", "1", "9", "3", "0", "2", "0", "2", "0"]; --- 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 198ae2b..cf099d7 100644 --- a/02_Day_Data_types/02_day_data_types.md +++ b/02_Day_Data_types/02_day_data_types.md @@ -763,7 +763,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,