Skip to main content

Replacer.ReplaceText

Pakeičiamas tekstas pateiktoje įvestyje.

Syntax

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

Remarks

Pakeičiamas old tekstas pradiniame text į new tekstą. Šią pakeitimo funkciją galima naudoti List.ReplaceValue ir Table.ReplaceValue.

Examples

Example #1

Pakeiskite tekstą „hE“ tekstu „He“ eilutėje „hEllo world“.

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

Result:

"Hello world"

Category

Replacer