Regular Expressions 101

Sponsors

Library entries

0
javascript

Get First Name

Grab a first name from a full name string
Submitted by Tom - a month 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
1
javascript

phone regex

phone regex
Submitted by antiai - 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
0
pcre

password strong

password 8-16 with A-Z a-z 0-9 and !@#$ without %
Submitted by alfxjx - a month ago
0
javascript

Website Regex

Finds all website URLs
Submitted by JohnnyJTH - 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 - 5 months ago