Regular Expressions 101

Sponsors

Library entries

0
javascript

URL Parts Extractor

Validate URL and extracts its parts.
Submitted by anonymous - 4 years ago
0
golang

golang function signature

no description available
Submitted by anonymous - 4 years ago
0
javascript

phone +38(099) 999 99 99

phone ukraine
Submitted by anonymous - 4 years ago
0
javascript

phone number 1

no description available
Submitted by anonymous - 4 years ago
0
javascript

phone number 2

no description available
Submitted by anonymous - 4 years ago
0
javascript

RUT

no description available
Submitted by anonymous - 4 years ago
0
javascript

password

no description available
Submitted by anonymous - 4 years ago
0
javascript

DMLR - Email Subject - Invoice

no description available
Submitted by anonymous - 4 years ago
0
javascript

DMLR - Email Subject - Invoice

no description available
Submitted by anonymous - 4 years ago
0
javascript

Valid SST

no description available
Submitted by anonymous - 4 years ago
0
javascript

二単語連続

no description available
Submitted by anonymous - 4 years ago
0
javascript

HatInTime_MOD制作支援

no description available
Submitted by anonymous - 4 years ago
0
javascript

MOD支援2

no description available
Submitted by anonymous - 4 years ago
0
javascript

https://www.mnet.ne.jp/~nakama/

no description available
Submitted by anonymous - 4 years ago
0
javascript

全行を抽出

no description available
Submitted by anonymous - 4 years ago
0
javascript

置換1

no description available
Submitted by anonymous - 4 years ago
0
javascript

ファイル操作

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