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

findstr (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the string class.

Syntax

c = findstr(a, b)

Description

Finds all occurrences of a string within another string. Unlike in the strfind 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 column vector.

Examples

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

Related Topics

strcmp
strncmp
strfind
strmatch


Resources


 

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