Say I have 100 words of text in a memo1.
How to calculate the number of words and phrase occurence in the memo and display it to a stringgrid1?
Here is the text example
Hi, my name is Delphio I am a Delphi Programmer.
I am addicted to Delphi and programming.
I love programming and solving problem.
Programming is my way of life.
Remember me, my name is Delphio a Delphi Programmer
The output in the stringgrid will be like this below
Note : I am open for any other idea how to display it better other than in string grid.
Three words count :
my name is Delphio | 2
name is Delphio | 2
Two words count :
Delphi Programmer | 2
One word count :
Programming | 3
name | 2
delphio | 2
delphi | 2
addicted | 2
(and so on.....)