Template:Get simple version number

This template accepts a version string that may contain additional information about packages and distributions, like  and returns just the version information to the left of the , providing a simplified version number for better aggregation.

The above example returns:

There are some tests that can be used to make sure this template is working right.