codice:
    var text = "testo della stringa {123}";
    var num = text.split('{')[1].split('}')[0];
    var testo = text.split('{')[0];