semver

([1-9]\d*|0).([1-9]\d*|0).([1-9]\d*|0)
major minor patch
pre-release:
-
0|[1-9]\d*|\d*[a-zA-Z-][a-zA-Z0-9-]*
.
0|[1-9]\d*|\d*[a-zA-Z-][a-zA-Z0-9-]*
build:
+
[a-zA-Z0-9-]*
.
[a-zA-Z0-9-]*