Community Patterns

Community Library Entry

1

Regular Expression
Created·2022-09-26 13:58
Flavor·Golang

`
\/([\w\-]+)(.git)?(@([\w\-\.]+))?$
`
gm
Open regex in editor

Description

Used by Zarf to obtain the name of a repository when given a git URL.

Submitted by Jonathan Perry