Test, validate and match regular expressions
This regular expression matches Git repository URLs across multiple protocols, including HTTPS, SSH, and the standard git protocol. It validates the URL structure and optionally allows for a trailing slash or branch specification. This is particularly useful for parsing repository links in developer tools, deployment scripts, or project configurations.