def parse_version(name: str) -> str: return get_or_default(VERSION_REGEX.search(name), '0')
def parse_prerelease(match: Optional[Match]) -> str: return get_or_default(match, NOT_PRERELEASE)
def parse_revision(name: str) -> str: return get_or_default(REV_REGEX.search(name), '0')