Question
Count Substring in String
Is there any way you can count the number of substrings in a
string using Coldfusion?
E.g.
haystack = 25fdjkkjlafjkl25alksdfjaafdjk25sl
needle = 25
result = 3
E.g.
haystack = 25fdjkkjlafjkl25alksdfjaafdjk25sl
needle = 25
result = 3
