Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^\[(?P<type>.+)\]\:\ (?P<subject>(.+)\.)(?=[\r\n|\r|\n]*Description)
/
gs

Description

git-stuff commit message header pattern.

Submitted by jeffryangtoni24 - 6 years ago