%stringReplaceI()

Aliases%stringReplaceI()
Parametersstring @needle1, string @needle2, string @haystack

    This function will replace all occurrences of the string defined by
needle1 by the string defined by needle2 in the haystack. This function
differs from the %stringReplace() function because it matches needle1
regardless of case.

Example:

@oldText = "One one Two two Three three Four four"
@newText = %stringReplaceI( Two, 2, @oldText )
echo Old Text: [@oldText]
echo New Text: [@newText]

Output:

Old Text: [One one Two two Three three Four four]
New Text: [One one 2 2 Three three Four four]