Replace a string or substring for another one, you can use a string or a Regex.

Video Example


  • str: String affected

  • charToReplace: String/Substring that's gonna be replaced

  • charReplaced: The new value of the replaced string

Expected Output

  • String: The string replaced

Text example

myReplace("I want to buy some links!", "buy", "earn")
// I want to earn some links!

Use cases

  • Replace text in Google Sheets with Unlimited Sheets

Last updated