I want to know how many times part of a string
appears inside a text, example:
Microsoft gives priority to quality, so Microsoft is the better.
I want a function in which I pass two parameters and return me how many times the first parameter occurs in the second. Something like:
ContarOcorrencias('Microsoft',TextoOriginal)
You should return 2 (two occurrences of the word Microsoft ).
I have some ideas on how to set up the function, but I wanted to see if there is anything native or how best to create it.