Text.Replace

Syntax

Text.Replace(
    text as nullable text,
    old as text,
    new as text
) as nullable text

About

返回将文本值oldtext中的所有匹配项替换为文本值new的结果。 此函数区分大小写。

示例 1

将句子中“the”的每个匹配项替换为“a”。

用法

Text.Replace("the quick brown fox jumps over the lazy dog", "the", "a")

输出

"a quick brown fox jumps over a lazy dog"