Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
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
Input 1
feat(regular-expression_conventionalCommitsỦniçode)!: Subject-3302 úniçode samlpe/ Validating everything for best conventionalCommits usage thanks Éverything is Ủniçode now www.example.com BREAKING CHANGE: breaking change description See: footer.com
Extraction
feat(regular-expression_conventionalCommitsỦniçode)!: Subject-3302 úniçode samlpe/ Validating everything for best conventionalCommits usage thanks Éverything is Ủniçode now www.example.com BREAKING CHANGE: breaking change description See: footer.com