Regular Expressions 101

Sponsors

Library entries

1
python

phone

This regex is decision phone number
Submitted by anonymous - 10 months ago
1
python

Test end

Test end
Submitted by anonymous - 10 months ago
1
python

link findall

Submitted by Kerem Göksu - 9 months ago
1
python

Don't match numbers longer than 5 length

using ^ and $
Submitted by anonymous - 8 months ago
1
python

ss001

Rep
Submitted by anonymous - 8 months ago
1
python

Remove HTML tags and comments

Remove HTML tags and comments
Submitted by Smit Patel - 7 months ago
1
python

Parse Data Fields

Parsing example
Submitted by anonymous - 4 months ago
1
python

ds100reg2

Data 100 Regular Expressions, adapted from Princeton
Submitted by anonymous - 4 months ago
1
python

Get domain name from URL

Get domain name from URL
Submitted by anonymous - 4 months ago
1
python

Extract time from text

Extract time from text
Submitted by anonymous - 4 months ago
1
python

CRON

Validades cron job time specification
Submitted by anonymous - 3 months 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