I am looking to get some code written for a (hopefully) simple project. What I have is a plain text document. Lets say it contains two sentences:
Coding is fun. I enjoy coding.
What I want is a way to read the file and look at he words Coding
and coding
as being the same. So, basically read the words and say there are two instances of the word coding
regardless of the case used. Is this possible?
All I know is Regex from my python days but I am learning MEAN stack so anything Javascript/NodeJS would be great.
I'm not asking someone to write the code, I just need some guidance in what to look for or if there are better ways to do this in JavaScript.
The return value in the example I give would ideally be 2. I just need it to count the instances.