find most frequently occurring letter/character combinations in a file
Instead of just looking for recurring words (a la: find n most frequent words in a file), I need to list all recurring letter combination strings...
Looking to record the most frequently occurring letter/character combinations of any/all length in a file?
Example list:
Stack
Exchange
Internet
Web
Question
Find
Frequent
Words
Combination
Letters
....
resulting repeating letter combinations:
[a,b,c,d,e,f,g,i,k,l,m,n,o,q,r,s,t,u,w,x]
in
ue
st
tion
ion
on
ti
et
te
ter
...
Ability to list results based on number of appearances = bonus :)