You can use regular expression instead of cut. For example to extract version number from nginx-1.15.0 use:
nginx-1.15.0
echo 'nginx-1.15.0' | grep -o '[0-9.]*$'
Output: 1.15.0
1.15.0