strfindall (MathScript RT Module Function)

LabVIEW 2012 MathScript RT模块帮助

版本日期:June 2012

产品编号:373123C-0118

»查看产品信息
下载帮助
(仅限Windows)

Owning Class: string

Requires: MathScript RT Module

Syntax

c = strfindall(a, b)

Legacy Name: strfind

Description

Finds all occurrences of a string within another string.

Examples

Inputs

Name Description
a Specifies the string in which you want to search.
b Specifies the string for which you want to search.

Outputs

Name Description
c Returns the starting indexes in a of all occurrences of b. c is a row vector.

Details

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

Examples

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

Related Topics

findstr
regex
regex_i
strcmp
strcmp_n
strmatchall
strread

文章是否对您有帮助?

没有帮助