Skip to content

llReplaceSubString

Function Syntax
string llReplaceSubString(
  1. string InitialString, // The original string in which to hunt for substring matches.
  2. string SubString, // The original substring to find.
  3. string NewSubString, // The new substring used to replace.
  4. integer Count // The max number of replacements to make. Zero Count means "replace all". Positive Count moves left to right. Negative moves right to left.
);

Searches InitialString and replaces instances of SubString with NewSubString. Zero Count means “replace all”. Positive Count moves left to right. Negative moves right to left.