From 0497bca742e8a0d593926f1659d7895a842d4c01 Mon Sep 17 00:00:00 2001 From: zhaocai Date: Wed, 12 Jan 2022 15:01:32 +0800 Subject: [PATCH] Update 12_day_regular_expressions.md fix links --- 12_Day_Regular_expressions/12_day_regular_expressions.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/12_Day_Regular_expressions/12_day_regular_expressions.md b/12_Day_Regular_expressions/12_day_regular_expressions.md index 99d85f0..dc676a4 100644 --- a/12_Day_Regular_expressions/12_day_regular_expressions.md +++ b/12_Day_Regular_expressions/12_day_regular_expressions.md @@ -501,11 +501,12 @@ distance = 12 1. Writ a function which cleans text. Clean the following text. After cleaning, count three most frequent words in the string. - ```js - sentence = `%I $am@% a %tea@cher%, &and& I lo%#ve %tea@ching%;. There $is nothing; &as& mo@re rewarding as educa@ting &and& @emp%o@wering peo@ple. ;I found tea@ching m%o@re interesting tha@n any other %jo@bs. %Do@es thi%s mo@tivate yo@u to be a tea@cher!?` + ```js + sentence = `%I $am@% a %tea@cher%, &and& I lo%#ve %tea@ching%;. There $is nothing; &as& mo@re rewarding as educa@ting &and& @emp%o@wering peo@ple. ;I found tea@ching m%o@re interesting tha@n any other %jo@bs. %Do@es thi%s mo@tivate yo@u to be a tea@cher!?` console.log(cleanText(sentence)) ``` + ```sh I am a teacher and I love teaching There is nothing as more rewarding as educating and empowering people I found teaching more interesting than any other jobs Does this motivate you to be a teacher