I believe very similar questions were asked, however, the provided answers/examples are not really applicable to my question. Well, at least not to the extent of my knowledge - I'm not a Javascript connoisseur, so pardon me for that.
Working with a Google Home device, I have the user say how much time he would like to have breakfast. He can answer in minutes, which is saved into a variable the_breakfast_minutes. How can I then extract the number from, for example, these strings using JS:
- 20 minutes
- 5 minutes
etc.
Gladly appreciate your help!