alias rem{} {
set -ln %x $1
while ($regsub(%x,/\{[^{]*?\}/g,,%x)) !
return %x
}
Usage: $rem{}(string)
\{ matches a { character, the \ escapes it since { has a special meaning in regex
[^{] matches a character that isnt {, the *? following makes it match as few as possible of these characters up until the next }
The loop is so it can remove nested {}s as well, should that be necessary, e.g. "{text {text} text} text"