How do I use different replacement texts for a pattern found multiple times
112963
Replace pattern each time with a different string (taken from external file)
140853
Is there an easy way to return a string repeated X number of times?
17377
How to replace all occurrences of a string in JavaScript?
123398
How to match multiple occurrences of a substring
51287
Conditionally replace regex matches in string
63154
Replacing the nth instance of a regex match in Javascript
43009
How to use replaceFirst to Replace {....}
88254
How do I perform a Perl substitution on a string while keeping the original?
92181
Search and replace a pattern containing backslashes
95647
How do I repeat a character n times in a string?
126454
Java replace Matcher
117607
How to do a recursive find/replace of a string with awk or sed?
22655
gedit: search and replace with regular expressions
28187
How to replace the first occurence in an expression instead of replacing all?
36108
Can regular expressions be used to match nested patterns?
128044
Java Replacing multiple different substring in a string at once (or in the most efficient way)
32635
Handling backreferences to capturing groups in re.sub replacement pattern