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

strreplace (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

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.

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