Regular Expressions 101

Community Patterns

Community Library Entry

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 - 3 years ago