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.
| Name | Description |
|---|---|
| a | Specifies a string. |
| b | Specifies a string. |
| Name | Description |
|---|---|
| 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. |
A = 'this is a test for findstr'
B = 'is'
C = findstr(A, B)