Function Block SUBSTR_COUNT

The Function Block STR_COUNT determines how often a string occurs in another string.

Input STR

Defines the string to be searched within.

Input SEARCH

Defines the string to be searched for.

Output

Returns the number of occurrences of the string SEARCH in the input STR as an Integer. If none are found, 0 is returned.