Bagikan melalui


Text.Replace

Sintaksis

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

Tentang

Mengembalikan hasil penggantian semua kemunculan nilai teks old di teks text dengan teks new. Fungsi ini sensitif terhadap huruf besar/kecil.

Contoh 1

Ganti setiap kemunculan "the" dalam kalimat dengan "a".

Penggunaan

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

Output

"a quick brown fox jumps over a lazy dog"