Can you help me
Here is the situation
I have a string similar to this one
profile1 { context all } profile2 { context serverside } profile3 { context clientside } profile4 { context clientside } profile5 { context serverside }
I want to change the string to have each profile with its context on its own line like that:
profile1 { context all }
profile2 { context serverside }
profile3 { context clientside }
profile4 { context clientside }
profile5 { context serverside }
I was thinking of replacing "} " with "}\n" using regsub
set modified_profilelist [regsub -all "string_to_replace" $profilelist "replacement_string" ]
but I can`t find a way to escape the curly brace
Anything I try gives me an error
Thanks in advance