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

    Feb 26, 2012 · Official doc for str.replace of Python 3. official doc: Python 3's str.replace str.replace(old, new[, count]) ...

  2. pandas applying regex to replace values - Stack Overflow

    Mar 23, 2014 · It method performs just as fast as the str.replace method (because both are syntactic sugar for a Python loop). However, the advantage of this method over str.replace is …

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

    May 31, 2012 · replace() accepts a pair of char or charsequence and replaceAll() accepts a pair of regex. It is not true that replace() works faster than replaceAll() since both uses the same code …

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

    Apr 28, 2017 · [^\]]* - 0+ (as the * quantifier matches zero or more occurrences, replace with + if you need to only match where there is 1 or more occurrences) chars other than ] (inside a …

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

    Feb 18, 2022 · To replace one character with one thing and a different character with something else, you can't really get around needing two separate calls to replace. You can abstract it into …

  6. Javascript replace method, replace with "$1" - Stack Overflow

    Dec 25, 2016 · The first call to the replace method is what puzzles me, I don't understand where the "$1" value comes from or what it means. I would think that the call should replace the …

  7. JavaScript String replace vs replaceAll - Stack Overflow

    Apr 28, 2021 · ECMAScript 2021 has added a new String function replaceAll. A long time ago in a galaxy not so far away, people used split + join or regular expressions to replace all …

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

    Oct 20, 2016 · ALTER TABLE Contacts ADD PostcodeSpaceFree AS Replace(Postcode, ' ', '') PERSISTED go CREATE NONCLUSTERED INDEX IX_Contacts_PostcodeSpaceFree ON …

  9. Replace whole string if it contains substring in pandas

    Sep 29, 2016 · I want to replace all strings that contain a specific substring. So for example if I have this dataframe: import pandas as pd df = pd.DataFrame({'name': ['Bob', 'Jane', 'Alice'], …

  10. MS Word: How to remove all return (new lines) in an exising …

    Aug 7, 2014 · Open the Find/Replace window (shortcut: [CTRL]+[h]). Execute the following Find/Replace operation. Find what: ^p . Replace with: Please note that you should not put …

Refresh