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.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e45e2b-44b61.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e45e2b-44b61.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?