Regular Expressions 101

Sponsors

Library entries

0
javascript

iban

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

MAX_LONG_STRING

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

Base64 Encoded Object GUID

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

iban test

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

ISO 8601 Date Format

Regex Matching ISO format
Submitted by anonymous - 4 years ago
0
golang

Message Log

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

UK Telephone Numbers

no description available
Submitted by Riaan Joubert - 4 years ago
0
javascript

Xhams1

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

Xv2-1080

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

XH2

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

regex-puppet-v1

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

SR169

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

Office

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

PH_Try2

no description available
Submitted by anonymous - 4 years ago

Check if string matches a valid CSS color (hex, rgb, rgba, hsl, hsla)

Vote

1

Regular Expression
javascript

/
^#(?:[\da-f]{3}){1,2}$|^#(?:[\da-f]{4}){1,2}$|(rgb|hsl)a?\((\s*-?\d+%?\s*,){2}(\s*-?\d+%?\s*)\)|(rgb|hsl)a?\((\s*-?\d+%?\s*,){3}\s*(0|(0?\.\d+)|1)\)
/
gmi

Description

Loading markdown...
Submitted by Ioannis Potouridis - 4 years ago