in reply to matching string

if($string1=~/version: (\d+\.\d+/){ $version=$1; print $version; }
Should do the trick...