Zoomed Image

AMSX Scripting Language - Command : Replace

Summary

Replace occurrences of a string in the result buffer, decoding special tokens first

Description

Replaces all occurrences of the search string with the replacement in the result buffer. The special token "$tab$" is decoded to a tab character in both the search and replacement values before processing. Use ReplaceString for a plain replacement without token decoding.

Parameters

ParameterDescription
cmdString to find (use "$tab$" to match a tab character)
Argument 0Replacement string (use "$tab$" to insert a tab character)

Syntax


Replace "String to find (use "$tab$" to match a tab character)", "Replacement string (use "$tab$" to insert a tab character)"

Return to the AMSX Command Reference