About 980,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 · 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 …

  5. Removing leading zeroes from a field in a SQL statement

    Sep 18, 2008 · I am working on a SQL query that reads from a SQLServer database to produce an extract file. One of the requirements to remove the leading zeroes from a particular field, …

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

  7. What is the keyboard shortcut for "Replace All" in PyCharm?

    Mar 8, 2025 · 9 I want to hit a shortkey and replace all in PyCharm. After I hit ctrl+R, I key in text to search and text as replacement. I need to click "Replace" / " Replace all". I currently move …

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

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

  10. How to use python-docx to replace text in a Word document and …

    If you replace the entire text of a paragraph, that will remove any character-level formatting, like a word or phrase in bold or italic. By the way, the code from @wnnmaw's answer is for the …