Regular Expressions 101

Sponsors

Library entries

1
pcre

URI generic parser

no description available
Submitted by anonymous - 8 years ago
1
pcre

test

no description available
Submitted by anonymous - 8 years ago
1
pcre

Labels with version numbers

Quick studty of labels with version numbers
Submitted by LC - 8 years ago
1
pcre

[attr=value] style

no description available
Submitted by David Rodrigues - 8 years ago
1
pcre

phone

no description available
Submitted by anonymous - 8 years ago
0
pcre

123

no description available
Submitted by anonymous - 8 years ago
0
pcre

fgj

no description available
Submitted by anonymous - 8 years ago
1
pcre

FLISR group match

no description available
Submitted by anonymous - 8 years ago
3
pcre

^.*(\/Summary\/).*(chelaxe\.ru).*$

no description available
Submitted by anonymous - 8 years ago
7
pcre

rsyslog test

global modifier
Submitted by dtmland - 8 years ago
1
javascript

AD Default Password Policy

no description available
Submitted by anonymous - 8 years ago
1
pcre

periodic-digit-numbers

no description available
Submitted by Wolf - 8 years ago

html color match: transparent, #fff, #123456, rgb, rgba, hsl, hsla

Vote

11

Regular Expression
javascript

/
^(rgb\s*?\(\s*?(000|0?\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\s*?,\s*?(000|0?\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\s*?,\s*?(000|0?\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\s*?\))$|^(rgba\s*?\(\s*?(000|0?\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\s*?,\s*?(000|0?\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\s*?,\s*?(000|0?\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\s*?,\s*?(0|0\.\d*|1|1.0*)\s*?\))$|^(transparent)$|^(#([a-fA-F0-9]){3})$|^(#([a-fA-F0-9]){6}$)|(^hsl\s*?\(\s*?(000|0?\d{1,2}|[1-2]\d\d|3[0-5]\d|360)\s*?,\s*?(000|100|0?\d{2}|0?0?\d)%\s*?,\s*?(000|100|0?\d{2}|0?0?\d)%\s*?\)$)|(^hsla\s*?\(\s*?(000|0?\d{1,2}|[1-2]\d\d|3[0-5]\d|360)\s*?,\s*?(000|100|0?\d{2}|0?0?\d)%\s*?,\s*?(000|100|0?\d{2}|0?0?\d)%\s*?,\s*?(0|0\.\d*|1|1.0*)\s*?\)$)$
/

Description

Loading markdown...
Submitted by grouch - 8 years ago