Hop til hovedindhold

Replacer.ReplaceText

Erstatter tekst i det angivne input.

Syntax​

Replacer.ReplaceText(
text as text,
old as text,
new as text
) as text

Remarks​

Erstatter teksten old i den oprindelige text med teksten new. Denne erstatningsfunktion kan bruges i List.ReplaceValue og Table.ReplaceValue.

Examples​

Example #1​

Erstat teksten "hE" med "He" i strengen "hEllo world".

Replacer.ReplaceText("hEllo world", "hE", "He")

Result:

"Hello world"

Category​

Replacer