Regular Expressions 101

Community Patterns

Match color string

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^\s*#?([A-F0-9]{6}|[A-F0-9]{3})\s*$
/
gmi

Description

Match color string

Submitted by EZ - 2 years ago