Regular Expressions 101

Community Patterns

git url

0

Regular Expression
Python

r"
(?P<method>https?|git|ssh)(?::\/\/(?:\w+@)?|@)(?P<provider>.*?)(?:\.org|\.com)(?:\/|:)(?P<handle>(?P<owner>.+?)\/(?P<repo>.+?))(?:\.git|\/)?$
"
gm

Description

no description available

Submitted by anonymous - 5 years ago