Zoomed Image

AMSX Scripting Language - Command : ReplaceAll

Summary

Replace all occurrences of a string within a given string

Description

Finds all occurrences of the search string within the source string and replaces them with the replacement. The result is stored in the result buffer. Unlike ReplaceFirst, all matches are replaced.

Parameters

ParameterDescription
cmdSource string to search within
Argument 0String to find
Argument 1Replacement string

Syntax


ReplaceAll "Source string to search within", "String to find", "Replacement string"

Return to the AMSX Command Reference