How regular expressions match the repetition of the first label

problem description

for example, a string like this

{Properties{_Color (Color, Color) =

how do I add a newline character to the first space of each line, and then match it until I see another string and insert a newline character before the first one?

May.26,2021

the description of the problem is not very clear. It will be better to understand

if you can write the expected results.
Menu