I remember reading somewhere that there is a function that will parse a string and extract the integer value. Does anyone know what that might be?
I have a string = "10 m" or "2 m"
I'd like to parse only the 10 or only the 2 or whatever the first integer is. The integer and the text will always be separated by a space, by the way.
Does such a function already exist? Or should I just start writing my own?
Thanks,
Mark ๐