About 3,190,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. 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 …

  4. How to globally replace a forward slash in a JavaScript string?

    Dec 30, 2010 · The following would do but only will replace one occurence: "string".replace('/', 'ForwardSlash'); For a global replacement, or if you prefer regular expressions, you just have …

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

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

  7. python - Case insensitive replace - Stack Overflow

    Jun 26, 2016 · It will replace all occurences of pattern in string with repl in a case-insensitive way. def replace_all(pattern, repl, string) -> str: occurences = re.findall(pattern, string, …

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

    Mar 17, 2023 · 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 …

  9. How to replace ' \' with '/' in a Java string? - Stack Overflow

    Apr 18, 2013 · replaceAll() needs Strings as parameters. So, if you write. path = path.replaceAll('\', '/'); it fails because you should have written

  10. string - Python Replace \\ with \ - Stack Overflow

    Mar 3, 2015 · Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Try Teams for free Explore Teams