Build, test, and debug regular expressions
Parses semantic versioning (semver) strings by capturing major, minor, and patch numbers, along with optional hyphen-prefixed pre-release identifiers and plus-prefixed build metadata. Matches formats like '1.2.3', '1.2.3-alpha.1', and '1.2.3-beta+build.42'. With global and multiline flags, it can scan entire files or logs to find all version strings, making it useful for package validation, changelog parsing, and dependency auditing.