About 240,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. 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.

  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 Python strings are …

  5. Python String replace () Method - W3Schools

    Definition and Usage The replace() method replaces a specified phrase with another specified phrase. Note: All occurrences of the specified phrase will be replaced, if nothing else is specified.

  6. The 4 Excel Find and Replace tricks I use to save hours

    Dec 14, 2025 · I used to waste hours in Microsoft Excel manually cleaning data, fixing formulas, and reformatting worksheets. That was until I realized I could use the Find and Replace dialog (Ctrl+H) to …

  7. Replace Strings in Python: replace (), translate (), and Regex

    May 4, 2025 · In Python, you can replace strings using the replace() and translate() methods, or with regular expression functions like re.sub() and re.subn(). Additionally, you can replace substrings at …

  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. Python String replace () Method - Python Tutorial

    Define a string and call the replace () method. The first parameter is the word to search, the second parameter specifies the new value. The output needs to be saved in the string. If you don’t save the …

  10. Python String replace () Method - Online Tutorials Library

    The Python String replace () method replaces all occurrences of one substring in a string with another substring. This method is used to create another string by replacing some parts of the original string, …