counting substrings in a master-string
Posted on 1999-01-08
I need a routine that can search within a string.
This routine must count all occurrencies of a1,a2.....h7,h8 (=8x8=64 possibilities)
within a master-string.
For example: If the string to be examined is:
master:='Ka1, Lb4,Td4, Kf6, Bh7';
the routine I am searching for should return the value 5.
(a1,b4,d4,f6,h7 = 5 occurrencies within the masterstring)
Have you an idea how this could be done in Delphi 3.0 ?
With kind regards