Owning Class: string
Requires: MathScript RT Module
c = findstr(a, b)
Finds all occurrences of a string within another string. Unlike in the strfindall function, the order of parameters in findstr is not important. LabVIEW searches the longer string for occurrences of the shorter string.
|a||Specifies a string.|
|b||Specifies a string.|
|c||Returns the starting indexes in the longer string of all occurrences of the shorter string you want to find. c is a row vector.|
The following table lists the support characteristics of this function.
|Supported in the LabVIEW Run-Time Engine||Yes|
|Supported on RT targets||Yes|
|Suitable for bounded execution times on RT||Not characterized|
A = 'this is a test for findstr'
B = 'is'
C = findstr(A, B)