About 4,880,000 results
Open links in new tab
  1. How to use string.replace() in python 3.x - Stack Overflow

    Feb 26, 2012 · The string.replace() is deprecated on python 3.x. What is the new way of doing this?

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

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

  3. pandas applying regex to replace values - Stack Overflow

    Mar 23, 2014 · The rule2 = (lambda... is used as a callable, therefore in your obj.str.replace the regex is passed the match object, i.e. your dictionary key to lookup the value pair to replace.

  4. How to replace part of a string using regex - Stack Overflow

    Apr 28, 2017 · You'll need to complete a few actions and gain 15 reputation points before being able to upvote. Upvoting indicates when questions and answers are useful. What's reputation …

  5. python - Case insensitive replace - Stack Overflow

    May 28, 2009 · Possibly the fastest method for a case-insensitive replace, tested against both using an arrayed string and using regex.

  6. How to find-and-replace in Visual Studio code in just the selection ...

    Jun 3, 2017 · Yes! This is the natural flow - first select text, then open Find & Replace, then select Find in selection, then type term to find and replacement term and finally Replace all.

  7. Visual Studio Code Search and Replace with Regular Expressions

    Apr 23, 2017 · I want to use "Search And Replace" in Visual Studio Code to change every instance of <h1>content</h1> to #### content within a document using a Regular …

  8. How can I automatically replace blank spaces in a range?

    Aug 20, 2023 · How can I automatically replace blank spaces in a range? I have empty cells in a range of values and I would like to not have to go in individually and fill the cells with 0. Is there …

  9. python .replace () regex - Stack Overflow

    119 In order to replace text using regular expression use the re.sub function: sub (pattern, repl, string [, count, flags]) It will replace non-everlaping instances of pattern by the text passed as …

  10. Why do i need to add /g when using string replace in Javascript?

    Jul 30, 2009 · This means that your replace will replace all copies of the matched string with the replacement string you provide. A list of useful modifiers: g - Global replace. Replace all …