Skip to main content

ReplaceString

Type

statement

Summary

Replaces occurrences of Pattern within Target in Replacement Source:An expression which evaluates to a string.

Syntax

replace <Pattern> with <Replacement> in <Target>

Description

Replaces each occurrence of the string Pattern in Target with Replacement.

Parameters

NameTypeDescription

Target

An expression which evaluates to a string container.

Replacement

An expression which evaluates to a string.

Examples

variable tString as String
put "purple" into tString
replace "p" with "t" in tString -- tString is "turtle"
Thank you for your feedback!

Was this page helpful?