Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
(?# First line )(?:fix|chore|docs|feat|refactor|style|test)(?:\(.*\))?: (?# Some content and then two line breaks twice. For the short and long description )[A-Za-z](?:.+\s{2}){2}(?# Ticket or project task line )(?:\w+\s(TT|PT)\d+[\s\S]*)
/
gm

Description

Commit Message

Regex for commit messages used internally at Exe-Squared

Submitted by anonymous - 2 years ago