Regular Expressions 101

Community Patterns

Community Library Entry

2

Regular Expression
PCRE2 (PHP >=7.3)

/
^([\w\s]+)(?:\((.+)\))?(!?): (.+)$
/
i

Description

https://conventionalcommits.org

Parses commits like type(scope)!: subject

Submitted by Alex Kinnee - 2 years ago