Regular Expressions 101

Sponsors

Library entries

-1
python

date format for year 2000 above

no description available
Submitted by anonymous - 7 years ago
-1
python

bibtex entries

match bibtex entries
Submitted by Sixue Qin - 7 years ago
-1
python

word_to_match

no description available
Submitted by anonymous - 7 years ago
-1
python

IP address

Looks for string formated like an IP address.
Submitted by anonymous - 7 years ago
-1
python

xml

no description available
Submitted by anonymous - 7 years ago
-1
python

Integer or decimal number

no description available
Submitted by Rick de L - 7 years ago
-1
python

شش

no description available
Submitted by anonymous - 7 years ago
-1
python

GetDeviceIdFromAOR

no description available
Submitted by anonymous - 7 years ago
-1
python

emoticon

no description available
Submitted by Victor Huang - 7 years ago
-1
javascript

DD/MM/YYYY

no description available
Submitted by nehakadam - 7 years ago
-1
javascript

Only letters without numbers

no description available
Submitted by anonymous - 7 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