Fix regular expression to work with multiple-digit version numbers