Regular Expressions 101

Community Patterns

There does not seem to be anything here

Community Library Entry

1

Regular Expression
Python

r"
\A(?P<type>feat|fix|ci|chore|docs|test|style|refactor|build|perf|revert)(?:\((?P<scope>.+?)\))?(?P<breaking>!)?:\s(?P<subject>.+)(?:\n\n(?P<body>[\s\S]*?))?(?:\n\n(?P<breaking_change>^BREAKING\sCHANGE:\s[\s\S]+))?\Z
"
gm

Description

Convetional commits regex

Submitted by anonymous - a month ago