Regular Expressions 101

Library entries

Tailwind CSS Color Regex

Vote

1

Regular Expression
javascript

/
(?:$|^|)(red-|blue-|indigo-|cool-gray-|pink-|yellow-|teal-|gray-|orange-|green-|purple-)(50|100|200|300|400|500|600|700|800|900)(?:$|^|)
/
gi

Description

Loading markdown...
Submitted by anonymous - a year ago