Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

strreplace (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: string

Requires: MathScript RT Module

Syntax

d = strreplace(a, b, c)

Legacy Name: strrep

Description

Replaces strings.

Examples

Inputs

Name Description
a Specifies the string in which you want to perform a string replacement.
b Specifies the string you want to replace.
c Specifies the string with which you want to replace each occurrence of b.

Outputs

Name Description
d Returns a with all occurrences of b replaced with c.

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 strreplace'
B = 'test'
C = 'TEST'
D = strreplace(A, B, C)

Related Topics

findstr
regex_replace
strcmp
strcmp_i
strfindall
strmatchall
strtrimwhite


 

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