Regular Expressions 101

Community Patterns

1...34567...902

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
\B#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})\b
/
g

Description

Long and short hexadecimal values.

Submitted by anonymous - 5 years ago