Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
Tailwind CSS Color Regex
Open Workspace
JavaScript
Match
Created 2020-11-20 16:08
1
Regular Expression
/
(?:
$
|
^
|)(
red-
|
blue-
|
indigo-
|
cool-gray-
|
pink-
|
yellow-
|
teal-
|
gray-
|
orange-
|
green-
|
purple-
)(
50
|
100
|
200
|
300
|
400
|
500
|
600
|
700
|
800
|
900
)(?:
$
|
^
|)
/
gi
Description
Just a little regex for the tailwind css color classes, It could be improved.
Submitted by
Anonymous