get all text between two chars (js)

how can get all text between two chars in “SaveLoadTests” ??

first { and last }

SaveLoadTests {
 "inttosave" "}12"
 SaveLoadTests1 {
 "inttosave" "3"
 "inttosave1" "2"
 }
}
SaveLoadTests3 {
 "inttosave" "}12"
 SaveLoadTests1 {
 "inttosave" "3"
 "inttosave1" "2"
 }
}

you can try a text.Split(args)

var args : char

args[0] = ‘{’

args[1] = ‘}’

there is shorthand way to pass args but you get the idea