Support

Equilla Formula Language

Replace

Replaces instances of the search string with the replacement string.

Inputs

Value
String: The string to modify.
TextToFind
String: The text to find.
ReplacementText
String: The text to replace the found text with.
IgnoreCase
Boolean: (Optional) Ignore case (default=false).

Examples

Replaces all instances of the word price with value
Input: Text( "Type the prices that you want to change the PRICE of." ); If CurrentBar = 1 Then Begin Print( "The original text is: " + Text ); Print( "The case-sensitive replaced text is: " + Replace( Text, "price", "value" ) ); Print( "The case-insensitive replaced text is: " + Replace( Text, "price", "value", True ) ); End;