© Copyright 2023, Astera Software
Name
GetFindCount
Syntax
GetFindCount (String lookFor, String lookIn)
Purpose
To search and return an integer value indicating the number of occurrences of the specified lookFor string in the specified lookIn string.
Description
Returns an integer representing the number of occurrences of lookFor in lookIn
Return Type
Int64
Parameters
lookFor [System.String] – String to search for
lookIn [System.String] – String to search in
isCaseSensitive [System.Boolean]
Example
In this example, we are passing the required parameters to the function transformation object using a Variables object.
Where,
lookFor = a
lookIn = AbcdabABCabcdeA
isCaseSensitive = False
Right-click on the function transformation object and select Preview Output. You can see that Astera Data Stack has returned the integer value “5”, indicating that the lookFor value, “a”, occurs 5 times within the lookIn value.