Is the location for each word fixed each time with only space as separator?
no, the separator can be anything, I'm looking for the digits closest to the specified string (temp in this case), without including what's between.
Does not make sense separator can be anything. Show the real line in pastebin
Thanks for attempting to help, I'm not sure what you are unclear about, but no worries, I'm progressing with a pseudo solution for now.
Use negative lookbehind
Or just check that the string starts with a digit (^\d+)
Slightly modified version of the expression I found here, which was the first result to come up when I typed "match float regex" into Google.
Обсуждают сегодня