I want to recover a QString between brakets.

For example i have "Cos([Temperature1]*25)+58" and i want recover just "[Temperature1]*25" ,

can i do it with a QRegExp or is there a best way?

Thanks!