Build, test, and debug regular expressions
The official Semantic Versioning (SemVer 2.0.0) validation pattern that matches version strings like '1.2.3', '1.0.0-alpha.1', or '2.0.0-rc.1+build.5'. It captures named groups for major, minor, and patch numbers (rejecting leading zeros), an optional hyphen-prefixed prerelease segment, and an optional plus-prefixed build metadata section. Ideal for validating or parsing software package versions, dependency constraints, and release tags, with multiline flags enabling validation of version lists.