About 2,450,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 the …

  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 set. Read …

  3. How Can You Match and Replace All Occurrences in a String?

    Let's learn how to match or replace all occurrences of a pattern in a string. You have previously learned about the replace() and match() methods, as well as the global g modifier.

  4. 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.

  5. JavaScript: String replace () method - TechOnTheNet

    This JavaScript tutorial explains how to use the string method called replace () with syntax and examples. In JavaScript, replace () is a string method that is used to replace occurrences of a …

  6. String.prototype.replace () - JavaScript | MDN

    Jul 1, 2017 · The replace () method returns a new string with some or all matches of a pattern replaced by a replacement. The pattern can be a string or a RegExp, and the replacement can be a string or a …

  7. REPLACE | definition in the Cambridge English Dictionary

    They had a dozen cats on set that day, to replace the ones that didn't come up as they tried to get the scene.

  8. How to Replace a String in Python

    Jan 15, 2025 · Replacing strings in Python is a fundamental skill. You can use the .replace() method for straightforward replacements, while re.sub() allows for more advanced pattern matching and …

  9. replace — Python Function Reference

    A comprehensive guide to Python functions, with examples. Find out how the replace function works in Python. Return a copy of the string with all occurrences of substring old replaced by new.

  10. SUBSTITUTE function - Microsoft Support

    This article describes the formula syntax and usage of the SUBSTITUTE function in Microsoft Excel. Description Substitutes new_text for old_text in a text string. Use SUBSTITUTE when you want to …