About 5,360,000 results
Open links in new tab
  1. 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 object representing the character mapping that you will use in that function.

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

  4. python .replace () regex - Stack Overflow

    118 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 string.

  5. docker - CondaToSNonInteractiveError: Terms of Service have not …

    Jul 16, 2025 · The default conda channel is defaults (anaconda.com) but if all the dependencies are available in the community conda-forge channel you can replace/remove usage of default conda channel.

  6. While replacing using regex, How to keep a part of matched string?

    Replace ^(\d+)\.(.*mp3)$ with \1 \2 Also, in recent versions of notepad++, it will also accept the following, which is also accepted by other IDEs/editors (eg. JetBrains products like Intellij IDEA): $1 $2 This assumes that the notepad++ regex matching engine supports groups. What the regex basically means is: match the digits in front of the first dot as group 1 and everything after it as ...

  7. windows - Replace or delete certain characters from filenames of …

    How do I delete certain characters or replace certain characters with other characters by some batch file execution, for filenames of all files in a Windows folder in one go, is there a DOS command...

  8. 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 and how do I get it? Instead, you can save this post to reference later.

  9. 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 there any difference?

  10. Replace whole string if it contains substring in pandas

    Sep 29, 2016 · Replace whole string if it contains substring in pandas Asked 8 years, 10 months ago Modified 3 years, 6 months ago Viewed 113k times