語法
Text.Replace(
text as nullable text,
old as text,
new as text
) as nullable text
關於
傳回將文字值 old 中所有出現的文字值 text 替換為文字值 new 的結果。 這個函式會區分大小寫。
範例 1
以 "a" 取代句子中出現的每一個 "the"。
使用方式
Text.Replace("the quick brown fox jumps over the lazy dog", "the", "a")
輸出
"a quick brown fox jumps over a lazy dog"