Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
^master$|^\d+(?:(?:\.\d+)+|(?:\-[A-z]+))+$
/
gm

Description

Branch naming regex that's suitable for Gitlab issues.

GIT SVN MERCURIAL MG

Submitted by anonymous - 7 years ago