Regular Expressions 101

Community Patterns

1

GrEedy

Python
greedy or no greedy_**
Submitted by daen3r1s - 2 days ago
1

emoji-test.txt

Python
emoji-test.txt
Submitted by anonymous - a month ago
0

comma separated ESPEC

Python
ESPEC
Submitted by Ian Cole - 3 months ago
0

NLP_Regex

Python
Learning Regex for NLP
Submitted by anonymous - 3 months ago
0

scriptpak №1

Python
scriptpak №1
Submitted by anonymous - 3 months ago

Conventional Commits validation

8

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 2 months ago)