Regular Expressions 101

Sponsors

Library entries

0
pcre2

InputInteger

InputInteger
Submitted by anonymous - 3 hours ago
0
pcre2

hidrologia

qualidade
Submitted by anonymous - 4 hours ago
0
javascript

RegEX IBAN SEPA with spaces

RegEX IBAN SEPA with spaces
Submitted by Karim MB - a day ago
0
javascript

js获取url上的参数

/(+)=(+)/gm
Submitted by anonymous - 3 days ago
0
pcre2

Celular Brasil

Validar celular do Brasil
Submitted by Paulo Neves - 4 days ago
1
javascript

中文匹配

本示例启用了多行匹配 m
Submitted by yang - 6 days ago
0
pcre2

Test mail

Email test
Submitted by anonymous - 7 days ago
0
pcre2

No Squares

Match not square brackets
Submitted by max - 8 days ago

Conventional Commits Validation Regex

Vote

1

Regular Expression
pcre2

/
^(?:(?<initial_commit>Initial commit\.?)|(?<merge>Merge [^\r\n]+)|(?<type>build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test|¯\\_\(\)_\/¯)(?:\((?<scope>[\w-]+)\))?(?<breaking>!)?: (?<summary>[\w ,'.`:-]+)(?<=\v\v){0,2}(?<body>[\w\s,'.`\[\]-]+)(?<footer>(?<=\v\v)(?:(?<footer_token>[\w\s-]+): (?<footer_value>[\w -`]+))+|$))
/
gm

Description

Loading markdown...
Submitted by Ahmed Kamal - 2 months ago