Regular Expressions 101

Sponsors

Library entries

0
pcre

lower case alpha and number

lower case alpha and number
Submitted by anonymous - 22 days ago
0
java

#结尾的电话匹配

#结尾的电话匹配
Submitted by anonymous - 22 days ago
0
java

IP Address

IP Address RegEx
Submitted by anonymous - 24 days ago
0
python

find const string in code for xml/java

.
Submitted by anonymous - 25 days ago
0
java

括号匹配

(\[]\])|(【】)|(())|(\(\))
Submitted by nasion - a month ago
0
python

matlab代码

matlab代码
Submitted by java - a month ago
0
java

DB

DB
Submitted by DB - a month ago
0
java

OS正则表达式

zzx
Submitted by zzx - a month ago
0
python

LinkTree

just to find linktree links in poirot
Submitted by anonymous - a month ago
0
python

#value # value

account for comments
Submitted by anonymous - a month ago
0
python

Phone number regex

REGEX to test various phone numbers
Submitted by Drew Recker - a month ago

Conventional Commits validation

Vote

6

Regular Expression
python

"
\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 - 4 months ago