Regular expression for git repository

Posted by runge on Stack Overflow See other posts from Stack Overflow or by runge
Published on 2010-03-25T11:00:46Z Indexed on 2010/03/25 11:03 UTC
Read the original article Hit count: 221

Filed under:

What will be proper regular expression for git repositories?

example link: [email protected]:someone/someproject.git

so it will be like server can be url or ip Project can contain some other characters than alphanumeric like '-' I'm not sure what is the role of '/'

any suggestions?

© Stack Overflow or respective owner

Related posts about regex