in reply to Re^2: reading values from file
in thread reading values from file

In case my assumption was incorrect and there could be a newline at the end of version, only the regex needs to be modified.

Should have thrown that in a comment as well, thanks for pointing it out to the poster.