Build, test, and debug regular expressions
This regex validates Debian/APT package version strings, matching the optional epoch followed by upstream version and an optional Debian revision. It ensures the version consists of numeric and alphanumeric characters with allowed symbols like tilde and dot. Useful for verifying package version format in scripts or parsers.