assumes version number is the last thing in the output (aside from a newline), and that no numbers appear before it; is that safe?  What about matching ([0-9]+\.)+[0-9]+