SemVer

Summary

A string constrained to the SemVer 2.0.0 specification.

Description

A semantic version is a string that is following the specification of Semantic Versioning 2.0.0.

Metadata

https://spdx.org/rdf/3.0.0/terms/Core/SemVer

Name SemVer
SubclassOf xsd:string

Format

  • Pattern: ^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$