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
/
\A(?:(?:^(?<type>feat|fix|ci|chore|docs|test|style|refactor|build|perf|revert)(?:\((?<scope>.+)\))?(?<breaking>!)?:\s(?<subject>.{3,})$)(?:(?:(?<BLANK_LINE>\n^$\n)(?<body>(?:^.{3,}$\n?)+))?(?<BLANK_LINE2>\n^$\n)(?:(?<breaking_change>^BREAKING\sCHANGE:\s[\s\w]+$)\n)?(?:(?<footer>^\w+:\s.+)))?\n?|)\Z
/
gm
Input 1
1
New
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