Thanks to WebbedWonder.com for providing this code snippet.
This VBScript function will return the number of occurences of a substring within a string. The function also relies on the Len function that returns the length of a string and the Instr function that returns the position of a particular substring within a string.
Call like this: dhCountIn("This is a test", "is",
False)
Returns this: 2
Get the best asp web hosting provider now and save 30%
Plug and play ASP membership script that integrates with PayPal to let you charge recurring membership fees.