Position of a substring
This functionality does not run in MATLAB.
stringlib::pos returns the position of a
substring in a string.
The third optional argument must be less than the length of
string1 does not contain
FAIL will be returned.
In case of several occurrences of the substring, the position of the first is returned.
If a starting point for the search is given,
the first position at which the substring occurs after that starting
stringlib::pos("abcdeabcdeabcde", "bc", 5)
The result is
FAIL if the substring does
not occur at all or after the given starting point.
stringlib::pos("abcdeabcdeabcde", "bc", 14)
Non empty string
Integer that determines the first position to search
Integer that determines the position or