How do I replace text between braces {...} including newline with regex in java?
I've seen many related questions about removing text within brackets but the main problem here is that if there's a new line in the middle of the match, it sort of seems to not match.
Any help on how to do that properly is appreciated, thanks!
Example:
Input:
text 1 {
text 2
text 3
}
Output after replacement:
text1