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 Source string. old required const string String to be substituted for each occurrence of target string. new required const string String to be replaced. 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 Source string. old required input string String to be substituted for each occurrence of target string. new required input string String to be replaced. 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 Source string. old required simple string String to be substituted for each occurrence of target string. new required simple string String to be replaced. 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 Source string. old required series string String to be substituted for each occurrence of target string. new required series string String to be replaced. Return Type
series string Example
//@lipi=2
indicator(str.replace_all("GoCharting is great and GoCharting is powerful!", "Chart", "view"), overlay=false)
plot(close)