Regular Expressions 101

Community Patterns

0

hk_ec_lanecrawford

PCRE2 (PHP >=7.3)
Submitted by Alex - 2 years ago
0

address

PCRE (PHP <7.3)
not sure
Submitted by anonymous - 2 years ago
0

IPv6

PCRE2 (PHP >=7.3)
small ipv6 regex
Submitted by anonymous - 2 years ago
0

regex_bl_fees_types

PCRE2 (PHP >=7.3)
guif
Submitted by guif - 2 years ago

Conventional Commits validation

10

Regular Expression
PCRE (PHP <7.3)

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

Description

Loading markdown...
Submitted by Krisque - 2 years ago
(Last modified 7 months ago)