Select a part of a incoming tekst

Need some help with this idea. Trying to select a part of a incoming tekst by whatsapp. It could be “timer# xx sec” or timer# xx min"

Is it possible with the use of logic to select only the XX (wich is a number) and put that in a nummeric variable?

I like to use it to set a cooking timer in homey.