什么是git存储库的合适正则表达式
示例链接:
[email protected]:someone/someproject.git
那就好像
[user]@[server]:[project].git
服务器可以是url或ip
项目可以包含字母数字以外的其他字符,如“-”
我不确定“/”的作用是什么
有什么建议吗
我将以下正则表达式用于在线远程存储库:
((git|ssh|http)([email protected][\w\.]+)(:(/)([\w\[email protected]:/\-~]+)(\.git)(/)?
Debuggex上的视图