I'm using Delphi 2007 and wonder if there is a simple way of counting the number of times a string occurs in another string. Any builtin function I can use?
Examples:
- "How" occurs once in the string "How are you?"
- "do" occurs twice in the string "How do you do?"