Regular Expressions 101

Community Patterns

1...34567...902

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