About 1,180,000 results
Open links in new tab
  1. Replace multiple characters in one replace call - Stack Overflow

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

  2. Replace multiple substrings in a Pandas series with a value

    Add the keyword argument regex=True to Series.replace() (not Series.str.replace) This does two things actually: It changes your replacement to regex replacement, which is much more …

  3. How do I replace all occurrences of a string? - Stack Overflow

    When replacing all occurrences of aba in ababa with ca, which result do you expect? caba? abca? cca?

  4. Remap values in pandas column with a dict, preserve NaNs

    598 map can be much faster than replace If your dictionary has more than a couple of keys, using map can be much faster than replace. There are two versions of this approach, depending on …

  5. How to replace multiple substrings of a string? - Stack Overflow

    After some benchmarking on using replace several times vs regex replacement on a string of increasing length by power of 2 with 100 replacements added, it seems that on my computer …

  6. How can I replace every occurrence of a String in a file with ...

    Using PowerShell, I want to replace all exact occurrences of [MYID] in a given file with MyValue. What is the easiest way to do so?

  7. How to replace all occurrences of a character in string?

    What is the effective way to replace all occurrences of a character with another character in std::string?

  8. How to break lines at a specific character in Notepad++?

    Click Ctrl + h or Search -> Replace on the top menu Under the Search Mode group, select Regular expression In the Find what text field, type ],\s* In the Replace with text field, type ],\n …

  9. Replacing blank values (white space) with NaN in pandas

    I want to find all values in a Pandas dataframe that contain whitespace (any arbitrary amount) and replace those values with NaNs. Any ideas how this can be improved? Basically I want to turn …

  10. Replace substring with another substring C++ - Stack Overflow

    How could I replace a substring in a string with another substring in C++, what functions could I use?