About 2,780,000 results
Open links in new tab
  1. String.prototype.replace () - JavaScript | MDN

    Jul 10, 2025 · The replace() method of String values returns a new string with one, some, or all matches of a pattern replaced by a replacement. The pattern can be a string or a RegExp, and …

  2. JavaScript String replace () Method - W3Schools

    The replace() method does not change the original string. If you replace a value, only the first instance will be replaced. To replace all instances, use a regular expression with the g modifier …

  3. PHP: str_replace - Manual

    If search and replace are arrays, then str_replace () takes a value from each array and uses them to search and replace on subject. If replace has fewer values than search, then an empty …

  4. Python String replace () Method - GeeksforGeeks

    Nov 17, 2025 · The replace () method returns a new string where all occurrences of a specified substring are replaced with another substring. It does not modify the original string because …

  5. JavaScript String replace () Method

    In this tutorial, you'll how to use JavaScript String replace () function to replace a substring in a string with a new one.

  6. javascript - Replace multiple characters in one replace call ...

    If you want to replace multiple characters you can call the String.prototype.replace() with the replacement argument being a function that gets called for each match. All you need is an …

  7. JavaScript Replace – How to Replace a String or Substring in JS

    Feb 28, 2023 · In this article, you have learned how to replace a string or substring in JavaScript with the replace() method and the various instances in which the replace() method can work.