query: Python - Replace text before first occurrence of string?
positive_passages.docid: 2360
positive_passages.text: My regex is matching too much. How do I make it stop?
negative_passages.docid: 105512
negative_passages.text: How to replace string and preserve its uppercase/lowercase
negative_passages.docid: 95557
negative_passages.text: Replace Multiple String Elements in C#
negative_passages.docid: 5460
negative_passages.text: How do I replace characters only on certain lines?
negative_passages.docid: 107006
negative_passages.text: Replace first line of a text file in Java
negative_passages.docid: 42597
negative_passages.text: Search and replace strings that are not substrings of other strings
negative_passages.docid: 142565
negative_passages.text: How to replace only the Nth occurrence of a pattern in a file?
negative_passages.docid: 62500
negative_passages.text: python regular expression replacing part of a matched string
negative_passages.docid: 65270
negative_passages.text: How do I perform string matching and replacements?
negative_passages.docid: 111536
negative_passages.text: Java; String replace (using regular expressions)?
negative_passages.docid: 126863
negative_passages.text: Is there something like a counter variable in regular expression replace?
negative_passages.docid: 114572
negative_passages.text: Remove the first part of a string using sed
negative_passages.docid: 78203
negative_passages.text: sed: delete all occurrences of a string except  the first one
negative_passages.docid: 67093
negative_passages.text: postgresql - replace all instances of a string within text field
negative_passages.docid: 51287
negative_passages.text: Conditionally replace regex matches in string
negative_passages.docid: 38405
negative_passages.text: Underscore `_` before the format string
negative_passages.docid: 107014
negative_passages.text: Replacing multiple characters in a string, the fastest way?