Optional multiline string replacement
759
How do I match any character across multiple lines in a regular expression?
90763
C++ multiline string literal
3662
How can I replace a string in a file(s)?
21411
Replace all single quotes with two single quotes in a string
7986
How can I remove a trailing newline?
64366
Matching an optional substring in a regex
123869
Reliably Remove Newlines From String
85973
Replace a string before a certain line
117363
Is there a simple way to remove multiple spaces in a string?
149956
Adapting "Find and Replace" functionality to work with Patterns
52637
php - replace string occurrences
137026
What's the advantage of having multi-line & single-line string literals in python?
153735
Hints for java.lang.String.replace problem?
39787
How do I replace multiple spaces with a single space in C#?
85809
How do I split a multi-line string into multiple lines?
95557
Replace Multiple String Elements in C#
25732
string.Replace (or other string modification) not working