Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

findstr (MathScript RT Module Function)

LabVIEW 2010 Help

Edition Date: June 2010

Part Number: 371361G-01

»View Product Info

Owning Class: string

Requires: MathScript RT Module

Syntax

c = findstr(a, b)

Description

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.

Examples

Inputs

Name Description
a Specifies a string.
b Specifies a string.

Outputs

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.

Examples

A = 'this is a test for findstr'
B = 'is'
C = findstr(A, B)

Related Topics

strcmp
strcmp_n
strfindall
strmatchall


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit