Functions
str.replace_all()
Substitutes new text for every occurrence of the old text. It takes no count. That is the difference between it and str.replace, which does.
Syntax · 1 of 4
str.replace_all(const string source, const string old, const string new) → const string
Arguments
source required const string the string to work on old required const string the text to replace new required const string the text to put in its place Return Type
const string Syntax · 2 of 4
str.replace_all(input string source, input string old, input string new) → input string
Arguments
source required input string the string to work on old required input string the text to replace new required input string the text to put in its place Return Type
input string Syntax · 3 of 4
str.replace_all(simple string source, simple string old, simple string new) → simple string
Arguments
source required simple string the string to work on old required simple string the text to replace new required simple string the text to put in its place Return Type
simple string Syntax · 4 of 4
str.replace_all(series string source, series string old, series string new) → series string
Arguments
source required series string the string to work on old required series string the text to replace new required series string the text to put in its place Return Type
series string Example
indicator(str.replace_all("GoCharting is great and GoCharting is powerful!", "Chart", "view"), overlay=false)
plot(close)