Regular Expressions 101

Community Patterns

`git` URL

0

Regular Expression
Python

r"
^(https|git)(:\/\/|@)([^\/:]+)[\/:]([^\/:]+)(?:\/(.+).git)?$
"
gm

Description

Match git URL components (including partial URLs).

Submitted by anonymous - 2 years ago (Last modified 2 years ago)