What's the best way to regex replace a string in python but keep its case?
125552
How do I write a regex to replace a word but keep its case in Python?
64266
How to replace a letter in a string with a new letter that will not be updated
72238
How to find sub-string and replace it?
113709
Reversing a regular expression in Python
65270
How do I perform string matching and replacements?
85777
How do I replace the last occurrence of a character in a string using sed?
13889
How to split a string, but also keep the delimiters?
42597
Search and replace strings that are not substrings of other strings
98104
How do I lowercase a string in Python?
53523
How to use regex in string in java?
9784
How do I replace certain parts of my string?
62812
How to convert a string to lower case in Bash?
70885
Regex for quoted string with escaping quotes
71992
Replacing pattern only when it matches a whole word
61837
Can you make just part of a regex case-insensitive?
52235
Case insensitive regular expression without re.compile?
40699
Python re.sub with a flag does not replace all occurrences