Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
Convetional commits
Open Workspace
Python
Match
Created 2025-10-06 13:11
1
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
\s
CHANGE:
\s
[
\s\S
]
+
)
)?
\Z
"
gm
Description
Convetional commits regex
Submitted by
Anonymous