About 3,010,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. 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 …

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

  6. An In-Depth Guide to Using the replace () Method - Expertbeacon

    Aug 30, 2024 · According to a recent survey, over 80% of developers use string replacement methods like replace () multiple times per week. With the rise of modern NLP libraries, usage of replace () and …

  7. Mastering JavaScript‘s Replace Method: A Complete Guide

    Dec 11, 2024 · With advanced regular expression matching, replace () eliminates the need for manual index tracking, painful loops, or complex conditional checks when modifying strings. Over the …

  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 - 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, …

  10. 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 …