Regular Expressions 101

Sponsors

Library entries

2
pcre

42 post regex

Hosts regex for 42 school (france)
Submitted by Kerosene2000 - 8 years ago
-3
javascript

111

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

111

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

1111

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

phone test

no description available
Submitted by cool guy - 8 years ago
6
python

CSS Import

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

French phone number

no description available
Submitted by Benoit Anastay - 8 years ago
2
pcre

more DISORTED EMAIL ADDRESSES

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

s

s
Submitted by anonymous - 8 years ago
-3
pcre

mail

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

unicode email sanitising

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

Unicode url sanitising

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

Unicode email sanitising

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

test

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

po box

no description available
Submitted by anonymous - 8 years ago

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

Vote

10

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 - 7 years ago