Regular Expressions 101

Sponsors

Library entries

0
pcre2

Celular Brasil

Validar celular do Brasil
Submitted by Paulo Neves - an hour ago
1
java

phone number middle number parsing

middle number parsing regex
Submitted by anonymous - 11 hours ago
0
java

Verify email

Regex for email
Submitted by anonymous - 2 days ago
0
pcre2

Test mail

Email test
Submitted by anonymous - 3 days ago
0
pcre2

No Squares

Match not square brackets
Submitted by max - 4 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 - a month ago