FindCount

STD.Str.FindCount( src, sought )

STD.Uni.FindCount( src, sought, form )

srcA string containing the data to search.
soughtA string containing the substring to search for.
formThe type of Unicode normalization to be employed. (NFC, NFD, NFKC, or NFKD)
Return: StringFindCount returns an INTEGER value.

The FindCount function returns the number of non-overlapping instances of the sought string within the src string.

Example:

A := IF(STD.Str.FindCount('ABCDE', 'BC') = 1,
   'Success',
   'Failure - 1');  //success
    
B := IF(STD.Str.FindCount('ABCDEABCDE', 'BC') = 1,
   'Success',
   'Failure - 1');  //failure