About 5,040,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. 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.

  3. python .replace () regex - Stack Overflow

    It will replace non-everlaping instances of pattern by the text passed as string. If you need to analyze the match to extract information about specific group captures, for instance, you can …

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

    Apr 28, 2017 · 22 You may use a regex that will match the first [....] followed with [ and capture that part into a group (that you will be able to refer to via a backreference), and then match 1+ …

  5. Difference between String replace () and replaceAll ()

    May 31, 2012 · What's the difference between java.lang.String 's replace() and replaceAll() methods, other than the latter uses regex? For simple substitutions like, replace . with /, is …

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

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

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

  8. c# replace \" characters - Stack Overflow

    text = text.Replace("\\\"", ""); (As mentioned in the comments, this is because strings are immutable in .NET - once you've got a string object somehow, that string will always have the …

  9. How to replace multiple strings in a file using PowerShell

    Aug 4, 2010 · I want to replace multiple instances of strings within this file, and I tried using PowerShell to do the job. It works fine for a single replace, but doing multiple replaces is very …

  10. sql - SELECT with a Replace () - Stack Overflow

    Oct 20, 2016 · I have a table of names and addresses, which includes a postcode column. I want to strip the spaces from the postcodes and select any that match a particular pattern. I'm trying …