Hi! I have an string like this:

The power is -50dBm@1MHz

I want to select only the part of -50 (including the minus sign since the number can be positive or negative) and convert it in a double variable to work with it.

I know that I have to use the val() function but I don´t know how select only the numer with the minus sign
Anybody can help me?

Thank you!