Regular Expressions 101

Sponsors

Library entries

0
pcre2

HTML TAG Match

Match a html tag.
Submitted by Fernando Gaston Olivera Alaniz - 3 hours ago
1
pcre

CSV quotation mark

See quotes that are not delimiters
Submitted by anonymous - 3 hours ago
0
pcre2

Nom avant domaine

sdfsdfsdfsdf
Submitted by sdfsfsdfsdf - 6 hours ago
0
pcre2

Validate email

Regex for email validation
Submitted by anonymous - 18 hours ago
0
javascript

finding video names

Should find any video names
Submitted by anonymous - a day ago
0
pcre2

Check WP Admin URLs

Check WP admin pages that are indexed
Submitted by anonymous - a day ago

Valid RGB color value

Vote

1

Regular Expression
javascript

/
^rgba?\((?:\s+)?(?<r>\d+(?<unit>%?))(?:\s+)?(?<separator>[\s|,])(?:\s+)?(?<g>\d+\k<unit>)(?:\s+)?\k<separator>(?:\s+)?(?<b>\d+\k<unit>)(?:\s+)?(?:(?<=(?:,.+))(?:,(?:\s+)?(?<a>(?:\d+)?(?:\.?\d+)))?(?:\s+)?)?\)$
/
gm

Description

Loading markdown...
Submitted by BorisTB - 4 months ago