Using regular expressions to find repeating words 1 find repeating words list 2 tidy up the data 3 find exactly how many repeats of each word there are a is the cat a cat or is it a cat b a matchAll b w b b 1 b ig b b console log b map to single words b b map v return v 0 filter multiple repeats b b filter v i return b indexOf v i console log b b forEach w let re new RegExp b w b g c a matchAll re c c console log w c length times
ngle words b b map v return v 0 filter multiple repeats b b filter v i return b indexOf v i console log b b forEach w let re new RegExp b w b g c a matchAll re c c console log w c length times