About 2,530,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. String.Replace Method (System) | Microsoft Learn

    Returns a new string in which all occurrences of a specified Unicode character in this instance are replaced with another specified Unicode character. Returns a new string in which all …

  3. pandas.DataFrame.replace — pandas 2.3.3 documentation

    Replace values given in to_replace with value. Values of the Series/DataFrame are replaced with other values dynamically. This differs from updating with .loc or .iloc, which require you to …

  4. JavaScript String replace () Method - W3Schools

    replace() is an ECMAScript1 (JavaScript 1997) feature. It is supported in all browsers: Well organized and easy to understand Web building tutorials with lots of examples of how to use …

  5. Python String replace () Method - GeeksforGeeks

    Oct 28, 2024 · The replace () method replaces all occurrences of a specified substring in a string and returns a new string without modifying the original string. Let’s look at a simple example of …

  6. C# - String Replace Examples - Dot Net Perls

    Aug 9, 2025 · A key detail of Replace() is that it will replace all instances of the string it finds, not just the first. If we use an empty replacement value, it removes the matches.

  7. Replace multiple characters in one replace call - Stack Overflow

    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 …

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

  9. C# String Replace

    In this tutorial, you will learn how to use the C# String Replace () method to replace all occurrences of a specified substring in a string with a new substring.

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